diff options
Diffstat (limited to 'src/char/char.c')
-rw-r--r-- | src/char/char.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c index 5373bec..fefc420 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -141,8 +141,9 @@ int char_log (char *fmt, ...) sprintf (tmpstr + 19, ".%03d: %s", (int) tv.tv_usec / 1000, fmt); vfprintf (logfp, tmpstr, ap); } + fclose_ (logfp); } - fclose_ (logfp); + va_end (ap); return 0; } |