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
This commit is contained in:
Christian S.J. Peron 2008-08-24 03:12:17 +00:00
parent 4570959392
commit db8502672e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=182090

View File

@ -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.