path_basedir_wrapper - get rid of unnecessary strlcpy

This commit is contained in:
LibretroAdmin 2022-07-31 12:42:50 +02:00
parent 36edb15c5b
commit 88bdaffa87
1 changed files with 5 additions and 1 deletions

View File

@ -1169,7 +1169,11 @@ void path_basedir_wrapper(char *path)
if ((last = find_last_slash(path)))
last[1] = '\0';
else
strlcpy(path, "." PATH_DEFAULT_SLASH(), 3);
{
path[0] = '.';
path[1] = PATH_DEFAULT_SLASH_C();
path[2] = '\0';
}
}
#if !defined(RARCH_CONSOLE) && defined(RARCH_INTERNAL)