summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCharles Pigott <charlespigott@googlemail.com>2020-02-09 23:10:12 +0000
committerCharles Pigott <charlespigott@googlemail.com>2020-02-09 23:25:53 +0000
commit8800225bdb7de1f0a44fc7924afc513d54218ccc (patch)
tree73d03f843109341bf53403e94d5ccf6e94a4276a /src
parent45838d0105eaa569ed27b62452d21621b61c4bf0 (diff)
downloadopenttd-8800225bdb7de1f0a44fc7924afc513d54218ccc.tar.xz
Fix #7993: Compile warning in kick/ban debug messages
Diffstat (limited to 'src')
-rw-r--r--src/console_cmds.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console_cmds.cpp b/src/console_cmds.cpp
index 30982d821..4706bfd91 100644
--- a/src/console_cmds.cpp
+++ b/src/console_cmds.cpp
@@ -529,7 +529,7 @@ DEF_CONSOLE_CMD(ConKick)
/* Reason for kicking supplied */
size_t kick_message_length = strlen(argv[2]);
if (kick_message_length >= 255) {
- IConsolePrintF(CC_ERROR, "ERROR: Maximum kick message length is 254 characters. You entered %d characters.", kick_message_length);
+ IConsolePrintF(CC_ERROR, "ERROR: Maximum kick message length is 254 characters. You entered " PRINTF_SIZE " characters.", kick_message_length);
return false;
} else {
return ConKickOrBan(argv[1], false, argv[2]);
@@ -553,7 +553,7 @@ DEF_CONSOLE_CMD(ConBan)
/* Reason for kicking supplied */
size_t kick_message_length = strlen(argv[2]);
if (kick_message_length >= 255) {
- IConsolePrintF(CC_ERROR, "ERROR: Maximum kick message length is 254 characters. You entered %d characters.", kick_message_length);
+ IConsolePrintF(CC_ERROR, "ERROR: Maximum kick message length is 254 characters. You entered " PRINTF_SIZE " characters.", kick_message_length);
return false;
} else {
return ConKickOrBan(argv[1], true, argv[2]);