diff options
author | David Gibson <dgibson@sneetch.(none)> | 2005-10-17 10:27:45 +1000 |
---|---|---|
committer | David Gibson <dgibson@sneetch.(none)> | 2005-10-17 10:27:45 +1000 |
commit | b4ac04952a2d8489cb28c5d0a3872d4a35dc58d2 (patch) | |
tree | 211cbf095348f347b802f3573b7d313425ac3140 /data.c | |
parent | 93c82174eac518b844b2faaf4f992d91013d9760 (diff) | |
download | dtc-b4ac04952a2d8489cb28c5d0a3872d4a35dc58d2.tar.gz |
Oops avoid using case range gcc extension.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); |