summaryrefslogtreecommitdiffstats
path: root/sys/kern
diff options
context:
space:
mode:
authorbp <bp@FreeBSD.org>2000-01-23 14:58:53 +0000
committerbp <bp@FreeBSD.org>2000-01-23 14:58:53 +0000
commit530d15757ae061a01705b454330722c9f99bac1b (patch)
treebd6449aabf41f2c1335d189079d86bd23c84ceab /sys/kern
parent56d1c048effaa985f7adf0a325060a2d7740f21e (diff)
downloadFreeBSD-src-530d15757ae061a01705b454330722c9f99bac1b.zip
FreeBSD-src-530d15757ae061a01705b454330722c9f99bac1b.tar.gz
Replace non obvious number with SPECNAMELEN constant.
Reviewed by: phk
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/kern_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c
index d6116f7..ac153083 100644
--- a/sys/kern/kern_conf.c
+++ b/sys/kern/kern_conf.c
@@ -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;
OpenPOWER on IntegriCloud