From a253fcff72afb814cfae8220528335b6a3484006 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 23 Dec 2023 22:46:59 +0100 Subject: move_and_time: return a pointer to the start of 'tmp' --- FICS/board.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FICS/board.c b/FICS/board.c index 6a241d5..11a9c19 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -236,7 +236,7 @@ move_and_time(move_t *m) static char tmp[20]; sprintf(tmp, "%-7s (%s)", m->algString, tenth_str(m->tookTime, 0)); - return tmp; + return &tmp[0]; } PRIVATE int -- cgit v1.2.3