Bug fixes
This commit is contained in:
parent
755ea27d46
commit
9ab7bf2408
2 changed files with 3 additions and 1 deletions
|
@ -114,6 +114,7 @@ process(head)
|
||||||
while (nsect--) {
|
while (nsect--) {
|
||||||
if (sects->os_flen) {
|
if (sects->os_flen) {
|
||||||
/* contains non-zero stuff */
|
/* contains non-zero stuff */
|
||||||
|
outhead.oh_nemit += outsp->os_size - outsp->os_flen;
|
||||||
outsp->os_flen = outsp->os_size + sects->os_flen;
|
outsp->os_flen = outsp->os_size + sects->os_flen;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -302,9 +302,10 @@ putemitindex(sectindex, emitoff, allopiece)
|
||||||
while (zero--) *p++ = 0;
|
while (zero--) *p++ = 0;
|
||||||
}
|
}
|
||||||
else return FALSE;
|
else return FALSE;
|
||||||
|
zero = 0;
|
||||||
}
|
}
|
||||||
zeros[allopiece - ALLOEMIT] =
|
zeros[allopiece - ALLOEMIT] =
|
||||||
((struct outsect *) modulptr(sectindex))->os_size - flen;
|
zero + ((struct outsect *) modulptr(sectindex))->os_size - flen;
|
||||||
if ((emitindex = alloc(allopiece, flen)) != BADOFF) {
|
if ((emitindex = alloc(allopiece, flen)) != BADOFF) {
|
||||||
*(ind_t *)modulptr(emitoff) = emitindex;
|
*(ind_t *)modulptr(emitoff) = emitindex;
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue