]> git.pld-linux.org Git - packages/gawk.git/commitdiff
- ignore wrong hex numbers and treat them as text (patch from rawhide).
authorkloczek <kloczek@pld-linux.org>
Thu, 25 Apr 2002 10:05:51 +0000 (10:05 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gawk-hex.patch -> 1.1

gawk-hex.patch [new file with mode: 0644]

diff --git a/gawk-hex.patch b/gawk-hex.patch
new file mode 100644 (file)
index 0000000..148c4f1
--- /dev/null
@@ -0,0 +1,12 @@
+--- builtin.c-old      Thu Mar 14 22:11:35 2002
++++ builtin.c  Thu Mar 14 22:11:54 2002
+@@ -2277,8 +2277,7 @@
+       short val;
+       char *start = str;
+-      if (*str == '0' && (str[1] == 'x' || str[1] == 'X')) {
+-              assert(len > 2);
++      if (*str == '0' && (str[1] == 'x' || str[1] == 'X') && len > 2) {
+               for (str += 2, len -= 2; len > 0; len--, str++) {
+                       switch (*str) {
This page took 0.045583 seconds and 4 git commands to generate.