[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.47,1.48
Karl DeBisschop
kdebisschop at users.sourceforge.net
Thu Aug 21 21:44:55 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv22052/plugins
Modified Files:
check_http.c
Log Message:
* bugfix: snprintf of timestamp truncated '\0'
Index: check_http.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_http.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -r1.47 -r1.48
*** check_http.c 21 Aug 2003 18:00:48 -0000 1.47
--- check_http.c 22 Aug 2003 04:43:11 -0000 1.48
***************
*** 993,997 ****
days_left = (mktime (&stamp) - time (NULL)) / 86400;
snprintf
! (timestamp, 16, "%02d/%02d/%04d %02d:%02d",
stamp.tm_mon + 1,
stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min);
--- 993,997 ----
days_left = (mktime (&stamp) - time (NULL)) / 86400;
snprintf
! (timestamp, 17, "%02d/%02d/%04d %02d:%02d",
stamp.tm_mon + 1,
stamp.tm_mday, stamp.tm_year + 1900, stamp.tm_hour, stamp.tm_min);
More information about the Commits
mailing list