summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_kthread.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2003-05-06 07:28:38 +0000
committerderaadt <deraadt@openbsd.org>2003-05-06 07:28:38 +0000
commit913fa84d7fb1474b8ba510575e682a5ddcbe573d (patch)
tree1413c2cd82312a2ec4652977bebbc8ec16e256d5 /sys/kern/kern_kthread.c
parentremove FSIRAND define and make it non-optional. ok millert@ (diff)
downloadwireguard-openbsd-913fa84d7fb1474b8ba510575e682a5ddcbe573d.tar.xz
wireguard-openbsd-913fa84d7fb1474b8ba510575e682a5ddcbe573d.zip
string cleaning; tedu ok
Diffstat (limited to 'sys/kern/kern_kthread.c')
-rw-r--r--sys/kern/kern_kthread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c
index e384832c838..ce81dc9342a 100644
--- a/sys/kern/kern_kthread.c
+++ b/sys/kern/kern_kthread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_kthread.c,v 1.18 2002/06/11 06:35:18 art Exp $ */
+/* $OpenBSD: kern_kthread.c,v 1.19 2003/05/06 07:28:38 deraadt Exp $ */
/* $NetBSD: kern_kthread.c,v 1.3 1998/12/22 21:21:36 kleink Exp $ */
/*-
@@ -89,7 +89,7 @@ kthread_create(void (*func)(void *), void *arg,
/* Name it as specified. */
va_start(ap, fmt);
- vsprintf(p2->p_comm, fmt, ap);
+ vsnprintf(p2->p_comm, sizeof p2->p_comm, fmt, ap);
va_end(ap);
/* All done! */