diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:09:14 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:34:42 +0000 |
commit | f7d5c292e44113ea8eb32e67e91cd02e520df5e3 (patch) | |
tree | cf22b6129379e15dd3c2286155599037cfeedd72 /mfb/mfbplygblt.c | |
parent | be9ee17f960cc3d8a8f999cab1579e83d9aea520 (diff) |
mfb: Remove usage of alloca
Replace with heap-based allocations.
Diffstat (limited to 'mfb/mfbplygblt.c')
-rw-r--r-- | mfb/mfbplygblt.c | 4 |
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: |