aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2024-03-24 00:19:54 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2024-03-24 00:19:54 +0100
commit3e3ede09a7b41ae86c5a10b6946ea21368b509ff (patch)
tree957b86b188d389b172ce06ec629a1e065de1f293
parentee17c2a084b34b2b3581bdb0cee0942ff107e193 (diff)
Fixed format string
-rw-r--r--FICS/board.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/FICS/board.c b/FICS/board.c
index b3ad95a..c984033 100644
--- a/FICS/board.c
+++ b/FICS/board.c
@@ -25,6 +25,8 @@
Markus Uhlin 23/12/28 Replaced rand() calls
Markus Uhlin 24/03/23 Replaced unbounded string
handling functions.
+ Markus Uhlin 24/03/24 Fixed format strings that
+ weren't string literals.
*/
#include "stdinclude.h"
@@ -216,8 +218,8 @@ update_holding(int g, int pieceCaptured)
continue;
if (player_is_observe(pl, g) || parray[pl].game == g) {
- pprintf_prompt(pl, (IsMachineStyle(parray[pl].style) ?
- tmp1 : tmp2));
+ pprintf_prompt(pl, "%s",
+ (IsMachineStyle(parray[pl].style) ? tmp1 : tmp2));
}
}
}