From 3e3ede09a7b41ae86c5a10b6946ea21368b509ff Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 24 Mar 2024 00:19:54 +0100 Subject: Fixed format string --- FICS/board.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'FICS') 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)); } } } -- cgit v1.2.3