mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 12:32:52 +00:00
(file_path.c) Use strlcpy for these instead of snprintf
This commit is contained in:
parent
ed0c9ef1dc
commit
5aaf4150e2
@ -509,7 +509,7 @@ void path_basedir(char *path)
|
||||
if (last)
|
||||
last[1] = '\0';
|
||||
else
|
||||
snprintf(path, 3, "." PATH_DEFAULT_SLASH());
|
||||
strlcpy(path, "." PATH_DEFAULT_SLASH(), 3);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1189,7 +1189,7 @@ void path_basedir_wrapper(char *path)
|
||||
if (last)
|
||||
last[1] = '\0';
|
||||
else
|
||||
snprintf(path, 3, "." PATH_DEFAULT_SLASH());
|
||||
strlcpy(path, "." PATH_DEFAULT_SLASH(), 3);
|
||||
}
|
||||
|
||||
#if !defined(RARCH_CONSOLE) && defined(RARCH_INTERNAL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user