diff options
author | Eric Wong <normalperson@yhbt.net> | 2006-03-29 07:38:58 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2006-03-29 07:38:58 +0000 |
commit | e2e7d113ad085e276fbf3803934416c8ac7a70d1 (patch) | |
tree | 547d2d316f3634b7d66dbdf63377609825e172c4 | |
parent | 171e1e9d7240fd760e03b779897301fd28319825 (diff) | |
download | mpd-e2e7d113ad085e276fbf3803934416c8ac7a70d1.tar.gz mpd-e2e7d113ad085e276fbf3803934416c8ac7a70d1.tar.xz mpd-e2e7d113ad085e276fbf3803934416c8ac7a70d1.zip |
myfprintf: we should be near -ke speeds on most desktops
git-svn-id: https://svn.musicpd.org/mpd/trunk@3970 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r-- | src/myfprintf.c | 4 |
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) { |