Bug fixes
authorceriel <none@none>
Thu, 12 Mar 1987 19:18:59 +0000 (19:18 +0000)
committerceriel <none@none>
Thu, 12 Mar 1987 19:18:59 +0000 (19:18 +0000)
util/led/extract.c
util/led/scan.c

index f599996..b03380b 100644 (file)
@@ -114,6 +114,7 @@ process(head)
        while (nsect--) {
                if (sects->os_flen) {
                        /* contains non-zero stuff */
+                       outhead.oh_nemit += outsp->os_size - outsp->os_flen;
                        outsp->os_flen = outsp->os_size + sects->os_flen;
                }
                else {
index 3e3dd10..e6987e6 100644 (file)
@@ -302,9 +302,10 @@ putemitindex(sectindex, emitoff, allopiece)
                        while (zero--) *p++ = 0;
                }
                else     return FALSE;
+               zero = 0;
        }
        zeros[allopiece - ALLOEMIT] =
-               ((struct outsect *) modulptr(sectindex))->os_size - flen;
+        zero + ((struct outsect *) modulptr(sectindex))->os_size - flen;
        if ((emitindex = alloc(allopiece, flen)) != BADOFF) {
                *(ind_t *)modulptr(emitoff) = emitindex;
                return TRUE;