mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Replace non obvious number with SPECNAMELEN constant.
Reviewed by: phk
This commit is contained in:
parent
7fd299cb92
commit
9e991dfa2f
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=56459
@ -300,7 +300,7 @@ make_dev(struct cdevsw *devsw, int minor, uid_t uid, gid_t gid, int perms, char
|
||||
|
||||
dev = makedev(devsw->d_maj, minor);
|
||||
va_start(ap, fmt);
|
||||
i = kvprintf(fmt, NULL, dev->si_name, 32, ap);
|
||||
i = kvprintf(fmt, NULL, dev->si_name, SPECNAMELEN + 1, ap);
|
||||
dev->si_name[i] = '\0';
|
||||
va_end(ap);
|
||||
dev->si_devsw = devsw;
|
||||
|
Loading…
Reference in New Issue
Block a user