Xprint: Remove usage of alloca

Replace with heap-based allocations.
This commit is contained in:
Daniel Stone 2007-11-05 14:09:49 +00:00
parent 1c84337af0
commit 259f4c36d5

View File

@ -535,7 +535,7 @@ PsPolyGlyphBlt(
nbyLine = BitmapBytePad(width); nbyLine = BitmapBytePad(width);
pbits = (unsigned char *)ALLOCATE_LOCAL(height*nbyLine); pbits = (unsigned char *)xalloc(height*nbyLine);
if (!pbits){ if (!pbits){
PsDestroyPixmap(pPixmap); PsDestroyPixmap(pPixmap);
return; return;
@ -576,6 +576,6 @@ PsPolyGlyphBlt(
x += pci->metrics.characterWidth; x += pci->metrics.characterWidth;
} }
DEALLOCATE_LOCAL(pbits); xfree(pbits);
FreeScratchGC(pGCtmp); FreeScratchGC(pGCtmp);
} }