diff options
author | csjp <csjp@FreeBSD.org> | 2008-08-24 03:12:17 +0000 |
---|---|---|
committer | csjp <csjp@FreeBSD.org> | 2008-08-24 03:12:17 +0000 |
commit | 54198745621b7e69edc3ab3da2659d6565f51b66 (patch) | |
tree | 8939abd772eb7fe1d49d597f00b1f71069044673 /sys/security | |
parent | 26b0fa62ca49fb8dd488857aea900922eeda03bc (diff) | |
download | FreeBSD-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')
-rw-r--r-- | sys/security/audit/audit_bsm_klib.c | 2 |
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. |