aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-03-29 07:38:58 +0000
committerEric Wong <normalperson@yhbt.net>2006-03-29 07:38:58 +0000
commite2e7d113ad085e276fbf3803934416c8ac7a70d1 (patch)
tree547d2d316f3634b7d66dbdf63377609825e172c4 /src
parent171e1e9d7240fd760e03b779897301fd28319825 (diff)
downloadmpd-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
Diffstat (limited to 'src')
-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) {