Skip to content

Commit

Permalink
beesep: Don't compare expressions of different signedness
Browse files Browse the repository at this point in the history
  • Loading branch information
donald committed Jul 8, 2022
1 parent 12aa108 commit db33ece
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/beesep.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ static void print_escaped(char *s, size_t n)

bee_fprint(stdout, "'");

while ((c = strchr(s, '\'')) && c - s < n) {
while ((c = strchr(s, '\'')) && c < s + n) {
if (c-s)
bee_fnprint(stdout, c - s, s);
bee_fprint(stdout, "'\\''");
Expand Down

0 comments on commit db33ece

Please sign in to comment.