summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/snprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdio/snprintf.c')
-rw-r--r--lib/libc/stdio/snprintf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/stdio/snprintf.c b/lib/libc/stdio/snprintf.c
index bedf98d..fe21129 100644
--- a/lib/libc/stdio/snprintf.c
+++ b/lib/libc/stdio/snprintf.c
@@ -50,6 +50,8 @@ static const char rcsid[] =
#include <varargs.h>
#endif
+#include "local.h"
+
#if __STDC__
int
snprintf(char *str, size_t n, char const *fmt, ...)
@@ -81,7 +83,7 @@ snprintf(str, n, fmt, va_alist)
f._flags = __SWR | __SSTR;
f._bf._base = f._p = (unsigned char *)str;
f._bf._size = f._w = n;
- ret = vfprintf(&f, fmt, ap);
+ ret = __vfprintf(&f, fmt, ap);
if (on > 0)
*f._p = '\0';
va_end(ap);
OpenPOWER on IntegriCloud