From cb1f1892f9923977f255847e12686308dacd6c86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Tue, 11 Dec 2012 10:02:27 +0000 Subject: [PATCH] moved static buf variable into doprnt() to avoid problems in flash --- SD_CARD/BaS_gcc/sources/bas_printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SD_CARD/BaS_gcc/sources/bas_printf.c b/SD_CARD/BaS_gcc/sources/bas_printf.c index 79d682b..e59433d 100644 --- a/SD_CARD/BaS_gcc/sources/bas_printf.c +++ b/SD_CARD/BaS_gcc/sources/bas_printf.c @@ -54,7 +54,6 @@ #define INF 32766 /* should be bigger than any field to print */ -static char buf[128]; static char snil[] = "(nil)"; static void xputchar(int c) @@ -101,6 +100,7 @@ size_t strlen(const char *s) static void doprnt(void (*addchar)(int), const char *sfmt, va_list ap) { + static char buf[128]; char *bp; const char *f; long l;