Commit 775d219f authored by alex@thinkpad's avatar alex@thinkpad
Browse files

my_fprintf: fix warning

--HG--
branch : cache-fixes
parent d35e1ec5e365
......@@ -26,13 +26,10 @@ my_fprintf(
const int maxlen = 512;
char buf[maxlen];
if (buf)
{
va_start( ap, fmt );
len = vsnprintf( buf, maxlen-1, fmt, ap );
va_end( ap );
FIO_WriteFile( file, buf, len );
}
va_start( ap, fmt );
len = vsnprintf( buf, maxlen-1, fmt, ap );
va_end( ap );
FIO_WriteFile( file, buf, len );
return len;
}
......
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