Commit e2e7d113 authored by Eric Wong's avatar Eric Wong

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
parent 171e1e9d
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment