summaryrefslogtreecommitdiffstats
path: root/sys/security/audit/audit_bsm_klib.c
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2008-08-24 03:12:17 +0000
committercsjp <csjp@FreeBSD.org>2008-08-24 03:12:17 +0000
commit54198745621b7e69edc3ab3da2659d6565f51b66 (patch)
tree8939abd772eb7fe1d49d597f00b1f71069044673 /sys/security/audit/audit_bsm_klib.c
parent26b0fa62ca49fb8dd488857aea900922eeda03bc (diff)
downloadFreeBSD-src-54198745621b7e69edc3ab3da2659d6565f51b66.zip
FreeBSD-src-54198745621b7e69edc3ab3da2659d6565f51b66.tar.gz
Use sbuf_putc instead of sbuf_cat. This makes more sense, since we are
appending a single character to the buffer. MFC after: 2 weeks
Diffstat (limited to 'sys/security/audit/audit_bsm_klib.c')
-rw-r--r--sys/security/audit/audit_bsm_klib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/security/audit/audit_bsm_klib.c b/sys/security/audit/audit_bsm_klib.c
index 75faa32..65f0ecb 100644
--- a/sys/security/audit/audit_bsm_klib.c
+++ b/sys/security/audit/audit_bsm_klib.c
@@ -567,7 +567,7 @@ audit_canon_path(struct thread *td, char *path, char *cpath)
free(fbuf, M_TEMP);
}
if (cwir == 0 || (cwir != 0 && cvnp == NULL))
- (void) sbuf_cat(&sbf, "/");
+ (void) sbuf_putc(&sbf, '/');
/*
* Now that we have processed any alternate root and relative path
* names, add the supplied pathname.
OpenPOWER on IntegriCloud