OSDN Git Service
(root)
/
timidity41
/
timidity41.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aec27a9
)
[sfviewer] Fix for buffer overrun
author
Starg
<starg@users.osdn.me>
Sun, 31 May 2020 12:35:10 +0000
(21:35 +0900)
committer
Starg
<starg@users.osdn.me>
Sun, 31 May 2020 12:35:10 +0000
(21:35 +0900)
sf_view_gui/mysndfont.c
patch
|
blob
|
history
diff --git
a/sf_view_gui/mysndfont.c
b/sf_view_gui/mysndfont.c
index
3951ebe
..
7b323c9
100644
(file)
--- a/
sf_view_gui/mysndfont.c
+++ b/
sf_view_gui/mysndfont.c
@@
-279,7
+279,7
@@
void CreateSoundFontTree(HWND hDlg, LPCSTR x_sf_filename_)
// if (x_cfg_info.d_rom[x_preset][x_keynote])
// sprintf(str_, "Bank%03d Note%03d[ROM] %s\0\0", x_preset, x_keynote, pname_);
// else
- s
printf(str_
, "%03d:%03d %s\0\0", x_preset, x_keynote, pname_);
+ s
nprintf(str_, sizeof(str_) / sizeof(str_[0])
, "%03d:%03d %s\0\0", x_preset, x_keynote, pname_);
tv.item.pszText = str_;
tv.item.cchTextMax = strlen(str_);