(libretro-common) (file_path.c) Cleanups
This commit is contained in:
parent
d94098cca1
commit
0709f2b11b
|
@ -505,7 +505,7 @@ bool path_is_absolute(const char *path)
|
||||||
void path_resolve_realpath(char *buf, size_t size)
|
void path_resolve_realpath(char *buf, size_t size)
|
||||||
{
|
{
|
||||||
#ifndef RARCH_CONSOLE
|
#ifndef RARCH_CONSOLE
|
||||||
char tmp[PATH_MAX_LENGTH];
|
char tmp[PATH_MAX_LENGTH] = {0};
|
||||||
|
|
||||||
strlcpy(tmp, buf, sizeof(tmp));
|
strlcpy(tmp, buf, sizeof(tmp));
|
||||||
|
|
||||||
|
@ -630,6 +630,7 @@ void fill_short_pathname_representation(char* out_rep,
|
||||||
fill_pathname(path_short, path_basename(in_path), "",
|
fill_pathname(path_short, path_basename(in_path), "",
|
||||||
sizeof(path_short));
|
sizeof(path_short));
|
||||||
|
|
||||||
|
#ifdef HAVE_COMPRESSION
|
||||||
last_hash = (char*)strchr(path_short,'#');
|
last_hash = (char*)strchr(path_short,'#');
|
||||||
if(last_hash != NULL)
|
if(last_hash != NULL)
|
||||||
{
|
{
|
||||||
|
@ -644,5 +645,6 @@ void fill_short_pathname_representation(char* out_rep,
|
||||||
strlcpy(out_rep, last_hash + 1, size);
|
strlcpy(out_rep, last_hash + 1, size);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
strlcpy(out_rep, path_short, size);
|
strlcpy(out_rep, path_short, size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue