commit | b4ac04952a2d8489cb28c5d0a3872d4a35dc58d2 | [log] [tgz] |
---|---|---|
author | David Gibson <dgibson@sneetch.(none)> | Mon Oct 17 10:27:45 2005 +1000 |
committer | David Gibson <dgibson@sneetch.(none)> | Mon Oct 17 10:27:45 2005 +1000 |
tree | 211cbf095348f347b802f3573b7d313425ac3140 | |
parent | 93c82174eac518b844b2faaf4f992d91013d9760 [diff] [blame] |
Oops avoid using case range gcc extension.
diff --git a/data.c b/data.c index c842396..3037cdf 100644 --- a/data.c +++ b/data.c
@@ -171,7 +171,14 @@ 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);