Fix STRFMT stopping at NUL characters in format spec strings

This commit is contained in:
Rangi
2026-08-22 19:23:49 -04:00
parent 9fa5058add
commit 21a4b85a4f
3 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -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;