Fixed a bug in rule generator code when using the memory copy function

This commit is contained in:
jsteube
2016-11-12 15:34:17 +01:00
parent b0a616084d
commit 45ffc764ed
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ int generate_random_rule (char rule_buf[RP_RULE_BUFSIZ], const u32 rp_gen_func_m
p1 = get_random_num (0, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p1];
p2 = get_random_num (1, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p1];
rule_buf[rule_pos++] = grp_pos[p2];
p3 = get_random_num (0, sizeof (grp_pos));
rule_buf[rule_pos++] = grp_pos[p3];
break;