]> git.pld-linux.org Git - packages/gawk.git/blobdiff - gawk-hex.patch
- ignore wrong hex numbers and treat them as text (patch from rawhide).
[packages/gawk.git] / gawk-hex.patch
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.115212 seconds and 4 git commands to generate.