1
0
mirror of https://github.com/libretro/RetroArch synced 2025-01-17 01:16:25 +00:00

dump_to_file_desperate - use strlcpy

This commit is contained in:
libretroadmin 2024-06-15 01:58:27 +02:00
parent 7dab17e50c
commit 429479c0ca

5
save.c
View File

@ -428,9 +428,8 @@ static bool dump_to_file_desperate(const void *data,
"%Y-%m-%d-%H-%M-%S", &tm_); "%Y-%m-%d-%H-%M-%S", &tm_);
_len = strlcat(path, "/RetroArch-recovery-", sizeof(path)); _len = strlcat(path, "/RetroArch-recovery-", sizeof(path));
_len += snprintf(path + _len, sizeof(path) - _len, "%u", type);
snprintf(path + _len, sizeof(path) - _len, strlcpy(path + _len, timebuf, sizeof(path) - _len);
"%u%s", type, timebuf);
/* Fallback (emergency) saves are always /* Fallback (emergency) saves are always
* uncompressed * uncompressed