From 9b055e8c43bc77ac4386849aa371fb2b771ba1fc Mon Sep 17 00:00:00 2001 From: gwr Date: Mon, 12 Apr 1999 00:24:17 +0000 Subject: [PATCH] minor nits -- replace vsprintf with vsnprinf --- sys/kern/kern_kthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/kern/kern_kthread.c b/sys/kern/kern_kthread.c index f211bb71ce07..45e8db4c7dcb 100644 --- a/sys/kern/kern_kthread.c +++ b/sys/kern/kern_kthread.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_kthread.c,v 1.3 1998/12/22 21:21:36 kleink Exp $ */ +/* $NetBSD: kern_kthread.c,v 1.4 1999/04/12 00:24:17 gwr Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -89,7 +89,7 @@ kthread_create(func, arg, newpp, fmt, va_alist) /* Name it as specified. */ va_start(ap, fmt); - vsprintf(p2->p_comm, fmt, ap); + vsnprintf(p2->p_comm, MAXCOMLEN, fmt, ap); va_end(ap); /* Arrange for it to start at the specified function. */