[Nagiosplug-checkins] CVS: nagiosplug/plugins check_http.c,1.24.2.5,1.24.2.6
Karl DeBisschop
kdebisschop at users.sourceforge.net
Thu Aug 21 21:44:46 CEST 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv21984/plugins
Modified Files:
Tag: r1_3_0
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.24.2.5
retrieving revision 1.24.2.6
diff -C2 -r1.24.2.5 -r1.24.2.6
*** check_http.c 29 Jul 2003 03:04:51 -0000 1.24.2.5
--- check_http.c 22 Aug 2003 04:42:55 -0000 1.24.2.6
***************
*** 974,978 ****
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);
--- 974,978 ----
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