summaryrefslogtreecommitdiff
path: root/package/snort/patches/patch-src_detection-plugins_sp_replace_c.orig
diff options
context:
space:
mode:
Diffstat (limited to 'package/snort/patches/patch-src_detection-plugins_sp_replace_c.orig')
-rw-r--r--package/snort/patches/patch-src_detection-plugins_sp_replace_c.orig11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/snort/patches/patch-src_detection-plugins_sp_replace_c.orig b/package/snort/patches/patch-src_detection-plugins_sp_replace_c.orig
new file mode 100644
index 000000000..3e78de505
--- /dev/null
+++ b/package/snort/patches/patch-src_detection-plugins_sp_replace_c.orig
@@ -0,0 +1,11 @@
+--- 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:14:46.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)
+ {