Browse Source

util: correct off-by-one in month display

nfactor-troky
Jeff Garzik 14 years ago committed by Jeff Garzik
parent
commit
7ff1280bbb
  1. 2
      util.c

2
util.c

@ -80,7 +80,7 @@ void applog(int prio, const char *fmt, ...)
f = alloca(len); f = alloca(len);
sprintf(f, "[%d-%02d-%02d %02d:%02d:%02d] %s\n", sprintf(f, "[%d-%02d-%02d %02d:%02d:%02d] %s\n",
tm.tm_year + 1900, tm.tm_year + 1900,
tm.tm_mon, tm.tm_mon + 1,
tm.tm_mday, tm.tm_mday,
tm.tm_hour, tm.tm_hour,
tm.tm_min, tm.tm_min,

Loading…
Cancel
Save