aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'FICS/board.c')
-rw-r--r--FICS/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/FICS/board.c b/FICS/board.c
index 71c6cce..75f289d 100644
--- a/FICS/board.c
+++ b/FICS/board.c
@@ -627,11 +627,14 @@ style10(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);
sprintf(tmp, ">10<\n");