watcom/le: initialize memory when aligning.
This commit is contained in:
@@ -209,6 +209,8 @@ void MemBuffer::alloc(unsigned size)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
b = p ;
|
b = p ;
|
||||||
|
|
||||||
|
//fill(0, b_size, (rand() & 0xff) | 1); // debug
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -450,7 +450,9 @@ void PackWcle::encodeImage(const Filter *ft)
|
|||||||
buildLoader(ft);
|
buildLoader(ft);
|
||||||
|
|
||||||
ibuf.dealloc();
|
ibuf.dealloc();
|
||||||
soimage = (ph.c_len + 3) &~ 3;
|
soimage = ph.c_len;
|
||||||
|
while (soimage & 3)
|
||||||
|
oimage[RESERVED + soimage++] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user