patch-src_util_c 668 B

1234567891011121314151617181920
  1. --- snort-2.8.5.1.orig/src/util.c 2009-08-10 22:41:42.000000000 +0200
  2. +++ snort-2.8.5.1/src/util.c 2009-12-27 17:21:05.000000000 +0100
  3. @@ -227,7 +227,7 @@ void ts_print(register const struct time
  4. if(!tvp)
  5. {
  6. /* manual page (for linux) says tz is never used, so.. */
  7. - bzero((char *) &tz, sizeof(tz));
  8. + memset((char *) &tz, 0, sizeof(tz));
  9. gettimeofday(&tv, &tz);
  10. tvp = &tv;
  11. }
  12. @@ -2714,7 +2714,7 @@ char *GetCurrentTimestamp()
  13. buf = (char *)SnortAlloc(SMALLBUFFER * sizeof(char));
  14. - bzero((char *)&tz,sizeof(tz));
  15. + memset((char *)&tz, 0, sizeof(tz));
  16. gettimeofday(&tv,&tz);
  17. tvp = &tv;