summaryrefslogtreecommitdiff
path: root/mfb/mfbplygblt.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2007-11-05 14:09:14 +0000
committerDaniel Stone <daniel@fooishbar.org>2007-11-05 14:34:42 +0000
commitf7d5c292e44113ea8eb32e67e91cd02e520df5e3 (patch)
treecf22b6129379e15dd3c2286155599037cfeedd72 /mfb/mfbplygblt.c
parentbe9ee17f960cc3d8a8f999cab1579e83d9aea520 (diff)
mfb: Remove usage of alloca
Replace with heap-based allocations.
Diffstat (limited to 'mfb/mfbplygblt.c')
-rw-r--r--mfb/mfbplygblt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mfb/mfbplygblt.c b/mfb/mfbplygblt.c
index 997e4a388..1bd56e1ec 100644
--- a/mfb/mfbplygblt.c
+++ b/mfb/mfbplygblt.c
@@ -254,7 +254,7 @@ MFBPOLYGLYPHBLT(pDrawable, pGC, x, y, nglyph, ppci, pglyphBase)
int getWidth; /* bits to get from glyph */
#endif
- if(!(ppos = (TEXTPOS *)ALLOCATE_LOCAL(nglyph * sizeof(TEXTPOS))))
+ if(!(ppos = (TEXTPOS *)xalloc(nglyph * sizeof(TEXTPOS))))
return;
pdstBase = mfbScanlineNoBankSwitch(pdstBase, x, y, widthDst);
@@ -388,7 +388,7 @@ MFBPOLYGLYPHBLT(pDrawable, pGC, x, y, nglyph, ppci, pglyphBase)
}
} /* for each glyph */
} /* while nbox-- */
- DEALLOCATE_LOCAL(ppos);
+ xfree(ppos);
break;
}
default: