Properly use strftime(): NUL terminating character is already taken into

account.
This commit is contained in:
Philippe Charnier 2004-01-04 16:07:03 +00:00
parent 6e7abcb1f1
commit ce6ce58ca1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=124129

View File

@ -1593,7 +1593,7 @@ passive_mode()
tr_sec = tr.tv_sec;
now = localtime(&tr_sec);
strftime(timebuf, sizeof(timebuf) - 1, "%b %e %k:%M:%S", now);
strftime(timebuf, sizeof(timebuf), "%b %e %k:%M:%S", now);
printf("Mtrace %s at %s",
len == 0 ? "query" :
igmp->igmp_type == IGMP_MTRACE_RESP ? "response" :