Commit 259f4c36 authored by Daniel Stone's avatar Daniel Stone
Browse files

Xprint: Remove usage of alloca

Replace with heap-based allocations.
parent 1c84337a
......@@ -535,7 +535,7 @@ PsPolyGlyphBlt(
nbyLine = BitmapBytePad(width);
pbits = (unsigned char *)ALLOCATE_LOCAL(height*nbyLine);
pbits = (unsigned char *)xalloc(height*nbyLine);
if (!pbits){
PsDestroyPixmap(pPixmap);
return;
......@@ -576,6 +576,6 @@ PsPolyGlyphBlt(
x += pci->metrics.characterWidth;
}
DEALLOCATE_LOCAL(pbits);
xfree(pbits);
FreeScratchGC(pGCtmp);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment