Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/crypto/des fix sprintf.
details: https://anonhg.NetBSD.org/src/rev/5414c08286df
branches: trunk
changeset: 328073:5414c08286df
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 25 16:28:15 2014 +0000
description:
fix sprintf.
diffstat:
sys/crypto/des/des_ecb.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 4ff1b72072b7 -r 5414c08286df sys/crypto/des/des_ecb.c
--- a/sys/crypto/des/des_ecb.c Tue Mar 25 16:19:13 2014 +0000
+++ b/sys/crypto/des/des_ecb.c Tue Mar 25 16:28:15 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: des_ecb.c,v 1.9 2005/12/11 12:20:52 christos Exp $ */
+/* $NetBSD: des_ecb.c,v 1.10 2014/03/25 16:28:15 christos Exp $ */
/* $KAME: des_ecb.c,v 1.5 2000/11/06 13:58:08 itojun Exp $ */
/* crypto/des/ecb_enc.c */
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: des_ecb.c,v 1.9 2005/12/11 12:20:52 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: des_ecb.c,v 1.10 2014/03/25 16:28:15 christos Exp $");
#include <sys/param.h>
#ifdef _KERNEL
@@ -98,7 +98,8 @@
size="int";
else
size="long";
- sprintf(buf,"des(%s,%s,%s,%s)",ptr,risc,unroll,size);
+ snprintf(buf, sizeof(buf), "des(%s,%s,%s,%s)",
+ ptr, risc, unroll, size);
init=0;
}
return(buf);
Home |
Main Index |
Thread Index |
Old Index