summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:09:49 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:42 +0000
commit259f4c36d581896ce605741b9e557a589013a9b8 (patch)
treeb0ca34fc851b0df64e3aaad0d97ccdeae4f1cde5
parent1c84337af0ac40498a53aa36289e2f6f5ff8b1c6 (diff)
Xprint: Remove usage of alloca
Replace with heap-based allocations.
-rw-r--r--hw/xprint/ps/PsText.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xprint/ps/PsText.c b/hw/xprint/ps/PsText.c
index 98cf15345..872c0f427 100644
--- a/hw/xprint/ps/PsText.c
+++ b/hw/xprint/ps/PsText.c
@@ -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);
}