Print the month number properly

MFC after: 1 week
This commit is contained in:
Brian Somers 2001-07-13 15:07:06 +00:00
parent 2e2d2a1322
commit 76dada465b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=79674

View file

@ -127,7 +127,7 @@ print_mesg(tty, tf, request, remote_machine)
(void)snprintf(line_buf[i], N_CHARS,
"Message from Talk_Daemon@%s at %d:%02d on %d/%.2d/%.2d ...",
hostname, localclock->tm_hour , localclock->tm_min,
localclock->tm_year + 1900, localclock->tm_mon,
localclock->tm_year + 1900, localclock->tm_mon + 1,
localclock->tm_mday);
sizes[i] = strlen(line_buf[i]);
max_size = max(max_size, sizes[i]);