char *ts, *output;
const char *t = fmt;
- ts = new char[32];
+ ts = new char[64];
output = new char[4096];
outfile.open("gameserv.log", ios::out | ios::app);
time_t ti;
time(&ti);
tm = localtime(&ti);
- strftime(ts, 32, "%Y%m%d", tm);
+ strftime(ts, 64, "%m/%d/%Y %H:%M:%S", tm);
sprintf(output, "[%s]: ", ts);