summaryrefslogtreecommitdiff
path: root/src/common/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/graph.c')
-rw-r--r--src/common/graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/graph.c b/src/common/graph.c
index e56783816..a13379a6b 100644
--- a/src/common/graph.c
+++ b/src/common/graph.c
@@ -71,7 +71,7 @@ void graph_pallet(struct graph* g, int index,unsigned long c) {
if(g == NULL || c >= 256) return;
if(g->pallet_count <= index) {
- malloc_set(g->png_data + 0x29 + 3 * g->pallet_count,0,(index - g->pallet_count) * 3);
+ memset(g->png_data + 0x29 + 3 * g->pallet_count,0,(index - g->pallet_count) * 3);
g->pallet_count = index + 1;
}
g->png_data[0x29 + index * 3 ] = (unsigned char)((c >> 16) & 0xFF); // R