summaryrefslogtreecommitdiff
path: root/plugin/business/tsg-http/test/test_pattern_replace.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/business/tsg-http/test/test_pattern_replace.cpp')
-rw-r--r--plugin/business/tsg-http/test/test_pattern_replace.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/business/tsg-http/test/test_pattern_replace.cpp b/plugin/business/tsg-http/test/test_pattern_replace.cpp
index 6e18057..9df3e88 100644
--- a/plugin/business/tsg-http/test/test_pattern_replace.cpp
+++ b/plugin/business/tsg-http/test/test_pattern_replace.cpp
@@ -198,7 +198,7 @@ TEST(PatternReplace, UrlReplace)
}
if(strcasestr(rd_url,"tsg_subscriber_id") != NULL)
{
- memset(replace_with, TFE_SYMBOL_MAX, 0);
+ memset(replace_with, 0, TFE_SYMBOL_MAX);
rule[n_rule].zone = kZoneRequestUri;
rule[n_rule].find = tfe_strdup("{{tsg_subscriber_id}}");
rule[n_rule].replace_with = tfe_strdup(" ");
@@ -206,7 +206,7 @@ TEST(PatternReplace, UrlReplace)
}
if(strcasestr(rd_url,"tsg_client_ip") != NULL)
{
- memset(replace_with, TFE_SYMBOL_MAX, 0);
+ memset(replace_with, 0, TFE_SYMBOL_MAX);
rule[n_rule].zone = kZoneRequestUri;
rule[n_rule].find = tfe_strdup("{{tsg_client_ip}}");
rule[n_rule].replace_with = tfe_strdup("192.168.50.71");