From 13da0775446dc24645bdbe52a081899d46a94c88 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Fri, 15 Jan 2010 08:18:18 +0100 Subject: make ag241 allmodconfig compile --- .../patch-src_detection-plugins_sp_replace_c | 38 ---------------------- 1 file changed, 38 deletions(-) delete mode 100644 package/snort/patches/patch-src_detection-plugins_sp_replace_c (limited to 'package/snort/patches/patch-src_detection-plugins_sp_replace_c') diff --git a/package/snort/patches/patch-src_detection-plugins_sp_replace_c b/package/snort/patches/patch-src_detection-plugins_sp_replace_c deleted file mode 100644 index ebf2f0375..000000000 --- a/package/snort/patches/patch-src_detection-plugins_sp_replace_c +++ /dev/null @@ -1,38 +0,0 @@ ---- snort-2.8.5.1.orig/src/detection-plugins/sp_replace.c 2009-07-07 17:37:04.000000000 +0200 -+++ snort-2.8.5.1/src/detection-plugins/sp_replace.c 2009-12-27 17:23:47.000000000 +0100 -@@ -111,7 +111,7 @@ static PatternMatchData * Replace_Parse( - file_name, file_line); - } - /* clear out the temp buffer */ -- bzero(tmp_buf, MAX_PATTERN_SIZE); -+ memset(tmp_buf, 0, MAX_PATTERN_SIZE); - - while(isspace((int)*rule)) - rule++; -@@ -122,7 +122,7 @@ static PatternMatchData * Replace_Parse( - } - - /* find the start of the data */ -- start_ptr = index(rule, '"'); -+ start_ptr = strchr(rule, '"'); - - if(start_ptr == NULL) - { -@@ -163,7 +163,7 @@ static PatternMatchData * Replace_Parse( - dummy_end = (dummy_idx + size); - - /* why is this buffer so small? */ -- bzero(hex_buf, 3); -+ memset(hex_buf, 0, 3); - memset(hex_buf, '0', 2); - - /* BEGIN BAD JUJU..... */ -@@ -269,7 +269,7 @@ static PatternMatchData * Replace_Parse( - strtol(hex_buf, (char **) NULL, 16)&0xFF; - - dummy_size++; -- bzero(hex_buf, 3); -+ memset(hex_buf, 0, 3); - memset(hex_buf, '0', 2); - } - else -- cgit v1.2.3 From a2c0f0b4fb853a9cec69452a6f6324963492e863 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Tue, 19 Jan 2010 21:02:34 +0100 Subject: fix rb532 allmodconfig --- .../snort/patches/patch-src_detection-plugins_sp_replace_c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/snort/patches/patch-src_detection-plugins_sp_replace_c (limited to 'package/snort/patches/patch-src_detection-plugins_sp_replace_c') diff --git a/package/snort/patches/patch-src_detection-plugins_sp_replace_c b/package/snort/patches/patch-src_detection-plugins_sp_replace_c new file mode 100644 index 000000000..e532b2ac1 --- /dev/null +++ b/package/snort/patches/patch-src_detection-plugins_sp_replace_c @@ -0,0 +1,11 @@ +--- snort-2.8.5.2.orig/src/detection-plugins/sp_replace.c 2009-07-07 17:37:04.000000000 +0200 ++++ snort-2.8.5.2/src/detection-plugins/sp_replace.c 2010-01-19 20:21:14.000000000 +0100 +@@ -122,7 +122,7 @@ static PatternMatchData * Replace_Parse( + } + + /* find the start of the data */ +- start_ptr = index(rule, '"'); ++ start_ptr = strchr(rule, '"'); + + if(start_ptr == NULL) + { -- cgit v1.2.3