aboutsummaryrefslogtreecommitdiffstats
path: root/libc/stdio/sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stdio/sprintf.c')
-rw-r--r--libc/stdio/sprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdio/sprintf.c b/libc/stdio/sprintf.c
index 739cde7fa..67f924b27 100644
--- a/libc/stdio/sprintf.c
+++ b/libc/stdio/sprintf.c
@@ -46,7 +46,7 @@ int
sprintf(char *str, const char *fmt, ...)
{
int ret;
- va_list ap;
+ va_list ap;
FILE f;
struct __sfileext fext;
@@ -57,7 +57,7 @@ sprintf(char *str, const char *fmt, ...)
f._bf._size = f._w = INT_MAX;
va_start(ap, fmt);
ret = vfprintf(&f, fmt, ap);
- va_end(ap);
+ va_end(ap);
*f._p = '\0';
return (ret);
}