Fix printf format specifiers

This commit is contained in:
smallmodel 2024-11-29 21:34:41 +01:00
parent 83a874e4fd
commit 7cad7a4bd0
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512
2 changed files with 3 additions and 3 deletions

View file

@ -1744,7 +1744,7 @@ void ScriptVariable::operator%=(const ScriptVariable& value)
Clear(); Clear();
throw ScriptException( throw ScriptException(
"binary '%' applied to incompatible types '%s' and '%s'", typenames[currentType], typenames[value.GetType()] "binary '%%' applied to incompatible types '%s' and '%s'", typenames[currentType], typenames[value.GetType()]
); );
break; break;

View file

@ -1669,9 +1669,9 @@ void SV_NetProfileDump_f(void)
} }
if (client->netchan.remoteAddress.type == NA_LOOPBACK) { if (client->netchan.remoteAddress.type == NA_LOOPBACK) {
Com_sprintf(buffer, sizeof(buffer), "#%2i-Loopback: "); Com_sprintf(buffer, sizeof(buffer), "#%2i-Loopback: ", i);
} else { } else {
Com_sprintf(buffer, sizeof(buffer), "Client #%2i: "); Com_sprintf(buffer, sizeof(buffer), "Client #%2i: ", i);
} }
FS_Write(buffer, strlen(buffer), hFile); FS_Write(buffer, strlen(buffer), hFile);