mirror of
https://github.com/libretro/RetroArch
synced 2025-03-12 04:14:23 +00:00
buildfix
This commit is contained in:
parent
887fd3c798
commit
74faafff37
@ -49,7 +49,7 @@ static void dol_copy_argv_path(const char *fullpath)
|
|||||||
cmdline[len++] = 0;
|
cmdline[len++] = 0;
|
||||||
// file must be split into two parts, the path and the actual filename
|
// file must be split into two parts, the path and the actual filename
|
||||||
// done to be compatible with loaders
|
// done to be compatible with loaders
|
||||||
if (fullpath && strchr(fullpath, '/') != -1)
|
if (fullpath && strchr(fullpath, '/') != (char *)-1)
|
||||||
{
|
{
|
||||||
char tmp[PATH_MAX];
|
char tmp[PATH_MAX];
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ static void dol_copy_argv_path(const char *fullpath)
|
|||||||
|
|
||||||
// filename
|
// filename
|
||||||
char *name = strrchr(fullpath, '/') + 1;
|
char *name = strrchr(fullpath, '/') + 1;
|
||||||
size_t t_len = strlen(name);
|
t_len = strlen(name);
|
||||||
memcpy(cmdline + len, name, t_len);
|
memcpy(cmdline + len, name, t_len);
|
||||||
len += t_len;
|
len += t_len;
|
||||||
cmdline[len++] = 0;
|
cmdline[len++] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user