mirror of
https://github.com/libretro/RetroArch
synced 2024-12-26 21:29:08 +00:00
dump_to_file_desperate - use strlcpy
This commit is contained in:
parent
7dab17e50c
commit
429479c0ca
7
save.c
7
save.c
@ -427,10 +427,9 @@ static bool dump_to_file_desperate(const void *data,
|
||||
strftime(timebuf, 256 * sizeof(char),
|
||||
"%Y-%m-%d-%H-%M-%S", &tm_);
|
||||
|
||||
_len = strlcat(path, "/RetroArch-recovery-", sizeof(path));
|
||||
|
||||
snprintf(path + _len, sizeof(path) - _len,
|
||||
"%u%s", type, timebuf);
|
||||
_len = strlcat(path, "/RetroArch-recovery-", sizeof(path));
|
||||
_len += snprintf(path + _len, sizeof(path) - _len, "%u", type);
|
||||
strlcpy(path + _len, timebuf, sizeof(path) - _len);
|
||||
|
||||
/* Fallback (emergency) saves are always
|
||||
* uncompressed
|
||||
|
Loading…
Reference in New Issue
Block a user