Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern minor nits -- replace vsprintf with vsnprinf
details: https://anonhg.NetBSD.org/src/rev/1daa55087ca1
branches: trunk
changeset: 471804:1daa55087ca1
user: gwr <gwr%NetBSD.org@localhost>
date: Mon Apr 12 00:24:17 1999 +0000
description:
minor nits -- replace vsprintf with vsnprinf
diffstat:
sys/kern/kern_kthread.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c47b4adb8bba -r 1daa55087ca1 sys/kern/kern_kthread.c
--- a/sys/kern/kern_kthread.c Mon Apr 12 00:22:08 1999 +0000
+++ b/sys/kern/kern_kthread.c Mon Apr 12 00:24:17 1999 +0000
@@ -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 @@
/* 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. */
Home |
Main Index |
Thread Index |
Old Index