Merge pull request #7863 from krzys-h/fix-paths

Fix path problems after b201d669b5ea1470bb239036aa944342a0591a95, again
This commit is contained in:
Twinaphex 2019-01-01 18:14:51 +01:00 committed by GitHub
commit f635bfa35d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1028,7 +1028,16 @@ void fill_pathname_expand_special(char *out_path,
out_path += src_size;
size -= src_size;
in_path++;
if (!path_char_is_slash(out_path[-1]))
{
src_size = strlcpy(out_path, path_default_slash(), size);
retro_assert(src_size < size);
out_path += src_size;
size -= src_size;
}
in_path += 2;
}
free(home_dir);
@ -1050,7 +1059,16 @@ void fill_pathname_expand_special(char *out_path,
out_path += src_size;
size -= src_size;
in_path++;
if (!path_char_is_slash(out_path[-1]))
{
src_size = strlcpy(out_path, path_default_slash(), size);
retro_assert(src_size < size);
out_path += src_size;
size -= src_size;
}
in_path += 2;
}
free(application_dir);