1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-11 16:21:12 +00:00

Fix some code in rp.c to make cppcheck happy

This commit is contained in:
jsteube 2016-11-16 16:35:40 +01:00
parent 0cd39ab963
commit fbcd899a34

View File

@ -479,10 +479,10 @@ int kernel_rule_to_cpu_rule (char *rule_buf, kernel_rule_t *rule)
u32 rule_pos;
u32 rule_len = HCBUFSIZ_LARGE - 1; // maximum possible len
char rule_cmd;
for (rule_cnt = 0, rule_pos = 0; rule_pos < rule_len && rule_cnt < MAX_KERNEL_RULES; rule_pos++, rule_cnt++)
{
char rule_cmd;
GET_NAME (rule);
if (rule_cnt > 0) rule_buf[rule_pos++] = ' ';