mirror of
https://github.com/holub/mame
synced 2025-04-26 02:07:14 +03:00
just use core_strdup() in osd_get_full_path() in src/osd/osdmini/minifile.c (nw)
This commit is contained in:
parent
974677858b
commit
3ee1ea2a77
@ -171,8 +171,7 @@ file_error osd_get_full_path(char **dst, const char *path)
|
||||
{
|
||||
// derive the full path of the file in an allocated string
|
||||
// for now just fake it since we don't presume any underlying file system
|
||||
*dst = (char*)osd_malloc_array(strlen(path) + 1);
|
||||
strcpy(*dst, path);
|
||||
*dst = core_strdup(path);
|
||||
return FILERR_NONE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user