mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
no need to zero the entire string
This commit is contained in:
parent
1d2600f5f3
commit
aede680cd7
@ -524,8 +524,11 @@ static bool win32_browser(
|
||||
|
||||
/* These need to be big enough to hold the path/name of any file the user may select.
|
||||
* FIXME: We should really handle the error case when this isn't big enough. */
|
||||
char new_title[TITLE_MAX] = {0};
|
||||
char new_file[FULLPATH_MAX] = {0};
|
||||
char new_title[TITLE_MAX];
|
||||
char new_file[FULLPATH_MAX];
|
||||
|
||||
new_title[0] = '\0';
|
||||
new_file[0] = '\0';
|
||||
|
||||
if (title && *title)
|
||||
strlcpy(new_title, title, sizeof(new_title));
|
||||
|
Loading…
Reference in New Issue
Block a user