patch-src_output-plugins_spo_log_ascii_c 626 B

123456789101112131415
  1. --- snort-2.8.5.1.orig/src/output-plugins/spo_log_ascii.c 2009-05-07 00:29:14.000000000 +0200
  2. +++ snort-2.8.5.1/src/output-plugins/spo_log_ascii.c 2009-12-27 17:22:59.000000000 +0100
  3. @@ -198,9 +198,9 @@ FILE *OpenLogFile(int mode, Packet * p)
  4. #endif
  5. /* zero out our buffers */
  6. - bzero((char *) log_path, STD_BUF);
  7. - bzero((char *) log_file, STD_BUF);
  8. - bzero((char *) proto, 5);
  9. + memset((char *) log_path, 0, STD_BUF);
  10. + memset((char *) log_file, 0, STD_BUF);
  11. + memset((char *) proto, 0, 5);
  12. if (mode == GENERIC_LOG || mode == DUMP || mode == BOGUS ||
  13. mode == NON_IP || mode == ARP)