diff options
author | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:10:55 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2007-11-05 14:34:42 +0000 |
commit | caf545063457591f88e1f7bcd25dbd0342f44343 (patch) | |
tree | a2c87d098235fe7bdcc6c59dfb303b7e4b3f650a /hw/kdrive/epson/epson13806.c | |
parent | d57060f16714f5667722001bd1a4500059dd59e1 (diff) |
KDrive: Remove usage of alloca
Replace with heap allocations.
Diffstat (limited to 'hw/kdrive/epson/epson13806.c')
-rw-r--r-- | hw/kdrive/epson/epson13806.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/kdrive/epson/epson13806.c b/hw/kdrive/epson/epson13806.c index cb00890a7..6cf8c9ad9 100644 --- a/hw/kdrive/epson/epson13806.c +++ b/hw/kdrive/epson/epson13806.c @@ -331,7 +331,7 @@ epsonCreateColormap (ColormapPtr pmap) case FB_VISUAL_STATIC_PSEUDOCOLOR: pVisual = pmap->pVisual; nent = pVisual->ColormapEntries; - pdefs = ALLOCATE_LOCAL (nent * sizeof (xColorItem)); + pdefs = xalloc (nent * sizeof (xColorItem)); if (!pdefs) return FALSE; for (i = 0; i < nent; i++) @@ -343,7 +343,7 @@ epsonCreateColormap (ColormapPtr pmap) pmap->red[i].co.local.green = pdefs[i].green; pmap->red[i].co.local.blue = pdefs[i].blue; } - DEALLOCATE_LOCAL (pdefs); + xfree (pdefs); return TRUE; default: |