'O' record is output correctly now.
[fw/sdcc] / as / z80 / asmain.c
index f916e9efd622af92b0d18a99260f9e3a47702e00..0570e36af807f82951bdcb9edf887e276a11869d 100644 (file)
@@ -854,7 +854,7 @@ loop:
                p = optsdcc;
                if ((c = getnb()) != 0) {
                        do {
-                               if (p < &tb[NINPUT-1])
+                               if (p < &optsdcc[NINPUT-1])
                                        *p++ = c;
                        } while ((c = get()) != 0);
                }