X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fblue.c;h=41b6f357d82820d3278ecb7ff5fc01596a848f34;hp=5402c4f9ef1b35c419e39fbd5e114574ffc9786e;hb=58552e8c761a70f8f0bd591fecdf576fa8216e3e;hpb=603f0cb25b7acc8f04f4b18d2a2fe6f90039829a diff --git a/test/blue.c b/test/blue.c index 5402c4f9..41b6f357 100644 --- a/test/blue.c +++ b/test/blue.c @@ -36,7 +36,7 @@ *****************************************************************************/ /* - * $Id: blue.c,v 1.45 2016/06/12 00:17:37 tom Exp $ + * $Id: blue.c,v 1.46 2016/09/05 00:24:27 tom Exp $ */ #include @@ -331,9 +331,9 @@ play_game(void) } else { char buf[BUFSIZ]; - (void) sprintf(buf, - "Type [%s] to move, r to redraw, q or INTR to quit: ", - live); + _nc_SPRINTF(buf, _nc_SLIMIT(sizeof(buf)) + "Type [%s] to move, r to redraw, q or INTR to quit: ", + live); do { move(PROMPTROW, 0);