Xprint: Remove usage of alloca
Replace with heap-based allocations.
This commit is contained in:
parent
1c84337af0
commit
259f4c36d5
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user