mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fix printf format specifiers
This commit is contained in:
parent
83a874e4fd
commit
7cad7a4bd0
2 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue