patch-src_output-plugins_spo_database_c 704 B

1234567891011
  1. --- snort-2.8.5.1.orig/src/output-plugins/spo_database.c 2009-10-02 22:29:59.000000000 +0200
  2. +++ snort-2.8.5.1/src/output-plugins/spo_database.c 2009-12-27 17:21:41.000000000 +0100
  3. @@ -333,7 +333,7 @@ static int instances = 0;
  4. /* this is for debugging purposes only */
  5. static char g_CurrentStatement[2048];
  6. #define SAVESTATEMENT(str) strncpy(g_CurrentStatement, str, sizeof(g_CurrentStatement) - 1);
  7. - #define CLEARSTATEMENT() bzero((char *) g_CurrentStatement, sizeof(g_CurrentStatement));
  8. + #define CLEARSTATEMENT() memset((char *) g_CurrentStatement, 0, sizeof(g_CurrentStatement));
  9. #else
  10. #define SAVESTATEMENT(str) NULL;
  11. #define CLEARSTATEMENT() NULL;