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:
parent
4570959392
commit
db8502672e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user