summaryrefslogtreecommitdiffstats
path: root/lib/libc/time/strftime.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/time/strftime.c')
-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 84c4c18e38f..aea2e2f8e6b 100644
--- a/lib/libc/time/strftime.c
+++ b/lib/libc/time/strftime.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: strftime.c,v 1.27 2015/09/12 14:35:40 guenther Exp $ */
+/* $OpenBSD: strftime.c,v 1.28 2015/10/24 18:13:18 guenther Exp $ */
/*
** Copyright (c) 1989, 1993
** The Regents of the University of California. All rights reserved.
@@ -30,6 +30,7 @@
#include <fcntl.h>
#include <locale.h>
+#include <stdio.h>
#include "private.h"
#include "tzfile.h"
@@ -612,7 +613,7 @@ _loc(void)
char * p;
const char ** ap;
const char * plim;
- char filename[FILENAME_MAX];
+ char filename[PATH_MAX];
struct stat st;
size_t namesize;
size_t bufsize;