--- deliantra/server/common/logger.C 2007/01/07 23:10:42 1.9 +++ deliantra/server/common/logger.C 2007/01/08 23:36:15 1.10 @@ -22,7 +22,6 @@ The authors can be reached via e-mail at */ - #include #include #include @@ -41,12 +40,9 @@ { if (logLevel <= settings.debug) { - char buf[20480]; /* This needs to be really really big - larger - * than any other buffer, since that buffer may - * need to be put in this one. - */ char msec[20]; - char tbuf[80]; + char buf[20460]; + char tbuf[20480]; struct timeval tv; gettimeofday (&tv, 0); @@ -60,8 +56,8 @@ vsnprintf (buf, sizeof (buf), format, ap); va_end (ap); - strncat (tbuf, msec, sizeof (buf)); - strncat (tbuf, buf, sizeof (buf)); + strncat (tbuf, msec, sizeof (tbuf)); + strncat (tbuf, buf, sizeof (tbuf)); fputs (tbuf, logfile); fputs (tbuf, stderr);