summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-26 09:05:40 +0000
committerkris <kris@FreeBSD.org>2000-11-26 09:05:40 +0000
commit092949d321c6383beb90b9bfef474624c8f659be (patch)
tree456a616bbdb4846d784dfb52a4ccdcc4366db6b2 /lib
parent7af08112ad8ecdb25a8f090af6b776e194afe858 (diff)
downloadFreeBSD-src-092949d321c6383beb90b9bfef474624c8f659be.zip
FreeBSD-src-092949d321c6383beb90b9bfef474624c8f659be.tar.gz
sprintf -> snprintf
Diffstat (limited to 'lib')
-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 40e0155..cd506c1 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);
}
OpenPOWER on IntegriCloud