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
This commit is contained in:
Eric Wong 2006-03-29 07:38:58 +00:00
parent 171e1e9d72
commit e2e7d113ad

View File

@ -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) {