mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-09-02 11:08:30 +02:00
debug/debugFlags.c: Wrong type of arguments to formatting function
Fix code scanning alert no. 68: Wrong type of arguments to formatting function (#46) Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
committed by
Tim Edwards
co-authored by
Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
parent
40f96faff8
commit
846f2b4cb1
+2
-2
@@ -121,7 +121,7 @@ DebugAddFlag(clientID, name)
|
||||
|
||||
if (id < 0 || id >= debugNumClients)
|
||||
{
|
||||
TxError("DebugAddFlag: bad client id %d (flag %s)\n", clientID, name);
|
||||
TxError("DebugAddFlag: bad client id %lu (flag %s)\n", clientID, name);
|
||||
return (0);
|
||||
}
|
||||
|
||||
@@ -165,7 +165,7 @@ DebugShow(clientID)
|
||||
|
||||
if (id < 0 || id >= debugNumClients)
|
||||
{
|
||||
TxError("DebugShow: bad client id %d\n", clientID);
|
||||
TxError("DebugShow: bad client id %lu\n", clientID);
|
||||
return;
|
||||
}
|
||||
dc = &debugClients[id];
|
||||
|
||||
Reference in New Issue
Block a user