summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2001-02-18 02:39:46 +0000
committerKris Kennaway <kris@FreeBSD.org>2001-02-18 02:39:46 +0000
commit560195e116d8e05b63d8ae492b043b57c1823fa8 (patch)
tree23272c5b03ea12530c8aa0af95511389af525f35 /lib/libc
parent94857b28e31c3ee2f2c9458d427eaf1157831489 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdtime/strftime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdtime/strftime.c b/lib/libc/stdtime/strftime.c
index 40e015549223..cd506c1cbeaa 100644
--- a/lib/libc/stdtime/strftime.c
+++ b/lib/libc/stdtime/strftime.c
@@ -443,7 +443,7 @@ _conv(n, format, pt, ptlim)
{
char buf[INT_STRLEN_MAXIMUM(int) + 1];
- (void) sprintf(buf, format, n);
+ (void) snprintf(buf, sizeof(buf), format, n);
return _add(buf, pt, ptlim);
}