Fix aliasing issue.

This commit is contained in:
Themaister 2011-06-25 16:49:34 +02:00
parent 59d9ff0d29
commit d221c480e6

4
file.c
View File

@ -273,10 +273,10 @@ void save_ram_file(const char* path, int type)
static char* load_xml_map(const char *path) static char* load_xml_map(const char *path)
{ {
char *xml_buf = NULL; void *xml_buf = NULL;
if (*path) 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); SSNES_LOG("Did not find XML memory map in \"%s\"\n", path);
else else
SSNES_LOG("Found XML memory map in \"%s\"\n", path); SSNES_LOG("Found XML memory map in \"%s\"\n", path);