Skip to content

Commit

Permalink
Oops avoid using case range gcc extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Gibson committed Oct 17, 2005
1 parent 93c8217 commit b4ac049
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion data.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,14 @@ struct data data_copy_escape_string(char *s, int len)
case 'r':
q[d.len++] = '\r';
break;
case '0' ... '7':
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
i--; /* need to re-read the first digit as
* part of the octal value */
q[d.len++] = get_oct_char(s, &i);
Expand Down

0 comments on commit b4ac049

Please sign in to comment.