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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189060
@ -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 New Issue
Block a user