freebsd-ports/games/daimonin/files/patch-src-wrapper.c
2005-02-16 21:33:18 +00:00

20 lines
499 B
C

--- ../../src/wrapper.c.orig Thu Dec 18 22:43:08 2003
+++ ../../src/wrapper.c Wed Feb 16 10:09:17 2005
@@ -44,13 +44,15 @@
}
if(!logstream) /* secure: we have no open stream*/
flag = FALSE;
- va_start(ap, format);
if(flag)
{
+ va_start(ap, format);
vfprintf(stdout, format, ap);
+ va_end(ap);
+ va_start(ap, format);
vfprintf(logstream, format, ap);
+ va_end(ap);
}
- va_end(ap);
fflush(logstream);
#endif