Skip to content

Commit

Permalink
Ensure index is compared against the actual value.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Nov 23, 2018
1 parent 2432e47 commit e688a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browsers.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ parse_browser_token (char ***list, char *line, int n)
/* value */
val = line + (idx + 1);
idx = strspn (val, "\t");
if (strlen (line) == idx)
if (strlen (val) == idx)
FATAL ("Malformed browser category at line: %d", n);
val = val + idx;
val = trim_str (val);
Expand Down

0 comments on commit e688a9d

Please sign in to comment.