aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/myfprintf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/myfprintf.c b/src/myfprintf.c
index c333e9c7f..2c68ad4a1 100644
--- a/src/myfprintf.c
+++ b/src/myfprintf.c
@@ -67,12 +67,10 @@ void myfprintfStdLogMode(FILE * out, FILE * err) {
}
void myfprintf(FILE * fp, char * format, ... ) {
- char buffer[BUFFER_LENGTH+1];
+ static char buffer[BUFFER_LENGTH+1];
va_list arglist;
int fd = fileno(fp);
- memset(buffer,0,BUFFER_LENGTH+1);
-
va_start(arglist,format);
if(fd==1 || fd==2) {
if(myfprintf_stdLogMode) {