From 4d9459b1580cf1667a98dfd1273b926a5a9706c9 Mon Sep 17 00:00:00 2001 From: Alex AUVOLAT Date: Sun, 27 May 2012 18:41:06 +0200 Subject: Minor change, bump. --- src/user/lib/libc/std/stdio.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/user/lib/libc/std/stdio.c b/src/user/lib/libc/std/stdio.c index 196c554..12064be 100644 --- a/src/user/lib/libc/std/stdio.c +++ b/src/user/lib/libc/std/stdio.c @@ -31,8 +31,7 @@ void vfprintf(FILE f, const char *fmt, va_list ap) { va_copy(ap2, ap); int l = printf_str_len(fmt, ap2); va_end(ap2); - char* buf = (char*) malloc(l+1); + char buf[l+1]; l = vsprintf(buf, fmt, ap); if (l > 0) write(f, 0, l, buf); - free(buf); } -- cgit v1.2.3