From d221c480e6c080f8bcaa5efe8dd02c9542133548 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sat, 25 Jun 2011 16:49:34 +0200 Subject: [PATCH] Fix aliasing issue. --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file.c b/file.c index d9352b0f07..48d789e9c8 100644 --- a/file.c +++ b/file.c @@ -273,10 +273,10 @@ void save_ram_file(const char* path, int type) static char* load_xml_map(const char *path) { - char *xml_buf = NULL; + void *xml_buf = NULL; if (*path) { - if (read_file(path, (void**)&xml_buf) < 0) + if (read_file(path, &xml_buf) < 0) SSNES_LOG("Did not find XML memory map in \"%s\"\n", path); else SSNES_LOG("Found XML memory map in \"%s\"\n", path);