mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 12:05:39 +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.
|
// Convert to hex string.
|
||||||
char buf[33];
|
char buf[33];
|
||||||
for (int i {0}; i < 16; ++i)
|
for (int i {0}; i < 16; ++i)
|
||||||
snprintf(buf + i * 2, 16, "%02x", digest[i]);
|
snprintf(buf + i * 2, 3, "%02x", digest[i]);
|
||||||
buf[32] = 0;
|
|
||||||
|
|
||||||
return std::string(buf);
|
return std::string(buf);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue