just use core_strdup() in osd_get_full_path() in src/osd/osdmini/minifile.c (nw)

This commit is contained in:
Oliver Stöneberg 2014-03-30 14:27:28 +00:00
parent 974677858b
commit 3ee1ea2a77

View File

@ -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;
}