OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6348f0
)
Initialize all of a buffer in counts_seek(). Resolves https://github.com/hengband...
author
Eric Branlund
<ebranlund@fastmail.com>
Sat, 24 Dec 2022 13:52:31 +0000
(06:52 -0700)
committer
Eric Branlund
<ebranlund@fastmail.com>
Sat, 24 Dec 2022 13:52:31 +0000
(06:52 -0700)
src/io/files-util.cpp
patch
|
blob
|
history
diff --git
a/src/io/files-util.cpp
b/src/io/files-util.cpp
index
79ba3ae
..
d2fb974
100644
(file)
--- a/
src/io/files-util.cpp
+++ b/
src/io/files-util.cpp
@@
-219,7
+219,7
@@
errr get_rnd_line_jonly(concptr file_name, int entry, char *output, int count)
*/
static errr counts_seek(PlayerType *player_ptr, int fd, uint32_t where, bool flag)
{
- char temp1[128]
, temp2[128]
;
+ char temp1[128]
{}, temp2[128]{}
;
auto short_pclass = enum2i(player_ptr->pclass);
#ifdef SAVEFILE_USE_UID
strnfmt(temp1, sizeof(temp1), "%d.%s.%d%d%d", player_ptr->player_uid, savefile_base, short_pclass, player_ptr->ppersonality, player_ptr->age);