--- lbbs/src/log.c 2004/10/22 15:20:32 1.6 +++ lbbs/src/log.c 2005/03/20 14:37:37 1.8 @@ -58,7 +58,7 @@ log_head (char *buf) t = time(0); strftime(s_time,256,"%Y-%m-%d %H:%M:%S", localtime (&t)); - sprintf(buf,"[%s] [%d] ", s_time, getpid()); + sprintf(buf,"[%s] [%d] ", s_time, getpid ()); return 0; } @@ -74,7 +74,7 @@ log_std(const char * format, ...) strcat(buf, format); va_start (args, format); - retval = vfprintf (fp_log_std, format, args); + retval = vfprintf (fp_log_std, buf, args); va_end (args); fflush(fp_log_std); @@ -93,7 +93,7 @@ log_error (const char * format, ...) strcat(buf, format); va_start (args, format); - retval = vfprintf (fp_log_err, format, args); + retval = vfprintf (fp_log_err, buf, args); va_end (args); fflush(fp_log_err);