mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Don't use PTY name as format string, even though it isn't insecure here.
It's guaranteed that the `name' variable always contains a string of the form pty[l‐sL‐S][0‐9a‐v], but I'd rather keep the compiler happy (LLVM).
This commit is contained in:
parent
98621d508c
commit
1e737f33a0
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ pty_clone(void *arg, struct ucred *cr, char *name, int namelen,
|
|||
|
||||
/* Create the controller device node. */
|
||||
*dev = make_dev_credf(MAKEDEV_REF, &ptydev_cdevsw, 0,
|
||||
NULL, UID_ROOT, GID_WHEEL, 0666, name);
|
||||
NULL, UID_ROOT, GID_WHEEL, 0666, "%s", name);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
|||
Loading…
Reference in a new issue