Module Name: src
Committed By: christos
Date: Wed Mar 26 17:46:04 UTC 2014
Modified Files:
src/sys/arch/mac68k/mac68k: pram.c
Log Message:
kill sprintf
To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/mac68k/mac68k/pram.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/mac68k/mac68k/pram.c
diff -u src/sys/arch/mac68k/mac68k/pram.c:1.22 src/sys/arch/mac68k/mac68k/pram.c:1.23
--- src/sys/arch/mac68k/mac68k/pram.c:1.22 Tue Jun 20 20:02:26 2006
+++ src/sys/arch/mac68k/mac68k/pram.c Wed Mar 26 13:46:04 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: pram.c,v 1.22 2006/06/21 00:02:26 rjs Exp $ */
+/* $NetBSD: pram.c,v 1.23 2014/03/26 17:46:04 christos Exp $ */
/*-
* Copyright (C) 1993 Allen K. Briggs, Chris P. Caputo,
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pram.c,v 1.22 2006/06/21 00:02:26 rjs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pram.c,v 1.23 2014/03/26 17:46:04 christos Exp $");
#include "opt_adb.h"
@@ -121,7 +121,8 @@ static const char *convtime(unsigned lon
t=0;
}
- sprintf(s,"%s %ld, %ld %ld:%ld:%ld",monstr[month],day,year,hour,minute,seconds);
+ snprintf(s, sizeof(s), "%s %ld, %ld %ld:%ld:%ld",
+ monstr[month], day, year, hour, minute, seconds);
return s;
}