X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=lib%2Flog.c;h=1999b17f1ea3e6cd60311169bec529feeff15cfa;hb=3da21ae4ccca49971551bcd90e0b30bfcd827708;hp=312a6dd0b9b92863fe3aa4be8b4a3187dd22aeba;hpb=9c14e9d8e2d36e941eae639a047482186304419a;p=swftools.git diff --git a/lib/log.c b/lib/log.c index 312a6dd..1999b17 100644 --- a/lib/log.c +++ b/lib/log.c @@ -238,13 +238,13 @@ void log(char* logString) free (logBuffer); } -void logf(const char* pszFormat, ...) +void logf(const char* format, ...) { char buf[1024]; va_list arglist; - va_start(arglist, pszFormat); + va_start(arglist, format); buf[0] = 0; - vsprintf(&buf[strlen(buf)], pszFormat, arglist); + vsprintf(&buf[strlen(buf)], format, arglist); va_end(arglist); strcat(buf, "\n"); log(buf);