mirror of
https://github.com/upx/upx
synced 2025-09-28 19:06:07 +08:00
Use upx_snprintf instead of snprintf.
This commit is contained in:
parent
b6a9b0a4c9
commit
0177a8d277
|
@ -1402,7 +1402,7 @@ void PeFile::processResources(Resource *res)
|
||||||
keep_icons = new char[1 + iconsin1stdir * 9];
|
keep_icons = new char[1 + iconsin1stdir * 9];
|
||||||
*keep_icons = 0;
|
*keep_icons = 0;
|
||||||
for (unsigned ic = 0; ic < iconsin1stdir; ic++)
|
for (unsigned ic = 0; ic < iconsin1stdir; ic++)
|
||||||
snprintf(keep_icons + strlen(keep_icons), 9, "3/%u,",
|
upx_snprintf(keep_icons + strlen(keep_icons), 9, "3/%u,",
|
||||||
get_le16(ibuf + res->offs() + 6 + ic * 14 + 12));
|
get_le16(ibuf + res->offs() + 6 + ic * 14 + 12));
|
||||||
if (*keep_icons)
|
if (*keep_icons)
|
||||||
keep_icons[strlen(keep_icons) - 1] = 0;
|
keep_icons[strlen(keep_icons) - 1] = 0;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user