summaryrefslogtreecommitdiff
path: root/lib/libc/time
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-26 00:21:41 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-05-26 00:21:41 +0000
commit9cc8fce39349f57d0ecea519e69e6e1ed5f1927f (patch)
treedcab84f8bf8f06ca72b11642279c793ce6e84ced /lib/libc/time
parent5db6f6c224b3a7e717f25bbeccbf3a31f6f5d2ce (diff)
oops, major oops; moritz@jodeit.org
Diffstat (limited to 'lib/libc/time')
-rw-r--r--lib/libc/time/strftime.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/time/strftime.c b/lib/libc/time/strftime.c
index ea0059a360f..281c8e482fc 100644
--- a/lib/libc/time/strftime.c
+++ b/lib/libc/time/strftime.c
@@ -1,6 +1,6 @@
#if defined(LIBC_SCCS) && !defined(lint) && !defined(NOID)
static char elsieid[] = "@(#)strftime.c 7.64";
-static char *rcsid = "$OpenBSD: strftime.c,v 1.9 2002/05/25 09:11:02 deraadt Exp $";
+static char *rcsid = "$OpenBSD: strftime.c,v 1.10 2002/05/26 00:21:40 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include "private.h"
@@ -648,7 +648,8 @@ _loc P((void))
((sizeof locale_home) + namesize + (sizeof lc_time)))
goto no_locale;
oldsun = 0;
- (void) snprintf(filename, "%s/%s/%s", locale_home, name, lc_time);
+ (void) snprintf(filename, sizeof filename, "%s/%s/%s", locale_home,
+ name, lc_time);
fd = open(filename, O_RDONLY);
if (fd < 0) {
/*