mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-29 19:55:37 +00:00
Changed an snprintf call in MathUtil as it could cause false positives for buffer overflow checks when building with GCC fortification
This commit is contained in:
parent
96be5c1317
commit
41fd33fdc3
|
@ -187,8 +187,7 @@ namespace Utils
|
|||
// Convert to hex string.
|
||||
char buf[33];
|
||||
for (int i {0}; i < 16; ++i)
|
||||
snprintf(buf + i * 2, 16, "%02x", digest[i]);
|
||||
buf[32] = 0;
|
||||
snprintf(buf + i * 2, 3, "%02x", digest[i]);
|
||||
|
||||
return std::string(buf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue