mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-23 06:07:06 +00:00
Fix STRFMT stopping at NUL characters in format spec strings
This commit is contained in:
+1
-1
@@ -555,7 +555,7 @@ std::string act_StringFormat(
|
||||
std::string str;
|
||||
size_t argIndex = 0;
|
||||
|
||||
for (size_t i = 0; spec[i] != '\0';) {
|
||||
for (size_t i = 0; i < spec.length();) {
|
||||
if (int c = spec[i]; c != '%') {
|
||||
str += c;
|
||||
++i;
|
||||
|
||||
Reference in New Issue
Block a user