mirror of
https://github.com/libretro/RetroArch
synced 2025-03-30 16:20:27 +00:00
(civetweb) Use strlcpy/strlcat
This commit is contained in:
parent
cd0bf8f31a
commit
cf76d9e121
4
deps/civetweb/civetweb.c
vendored
4
deps/civetweb/civetweb.c
vendored
@ -5654,8 +5654,8 @@ mg_modify_passwords_file(const char *fname,
|
||||
}
|
||||
|
||||
/* Create a temporary file name. Length has been checked before. */
|
||||
strcpy(tmp, fname);
|
||||
strcat(tmp, ".tmp");
|
||||
strlcpy(tmp, fname, sizeof(tmp));
|
||||
strlcat(tmp, ".tmp", sizeof(tmp));
|
||||
|
||||
/* Create the file if does not exist */
|
||||
/* Use of fopen here is OK, since fname is only ASCII */
|
||||
|
Loading…
x
Reference in New Issue
Block a user