aboutsummaryrefslogtreecommitdiffstats
path: root/FICS
diff options
context:
space:
mode:
Diffstat (limited to 'FICS')
-rw-r--r--FICS/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/FICS/board.c b/FICS/board.c
index 3bd7d14..a5557b8 100644
--- a/FICS/board.c
+++ b/FICS/board.c
@@ -763,11 +763,14 @@ style12(game_state_t *b, move_t *ml)
: "none"),
(orient == WHITE ? 0 : 1));
+
too_long = (ret < 0 || (size_t)ret >= sizeof tmp);
+
if (too_long) {
fprintf(stderr, "FICS: %s: warning: snprintf truncated\n",
__func__);
}
+
strcat(bstring, tmp);
return 0;