X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftic.c;h=22b6ea2a0d63d7536ef892eede5dacb4a53636e9;hp=9f446f5c76233c1cd3b4ab49781e8828eeec30dc;hb=e2e9c09c48b19b24979cafb2d4864f538b5ddd1c;hpb=bdb754b9f04f332b59d72f761a297497b2db8af1 diff --git a/progs/tic.c b/progs/tic.c index 9f446f5c..22b6ea2a 100644 --- a/progs/tic.c +++ b/progs/tic.c @@ -48,7 +48,7 @@ #include #include -MODULE_ID("$Id: tic.c,v 1.222 2016/06/11 23:20:55 tom Exp $") +MODULE_ID("$Id: tic.c,v 1.223 2016/09/05 00:27:13 tom Exp $") #define STDIN_NAME "" @@ -1776,7 +1776,9 @@ check_1_infotocap(const char *name, NCURSES_CONST char *value, int count) *next++ = '\0'; for (k = 1; k <= NUM_PARM; k++) { numbers[k] = count; - sprintf(next, "XYZ%d", count); + _nc_SPRINTF(next, + _nc_SLIMIT(sizeof(blob) - (next - blob)) + "XYZ%d", count); strings[k] = next; next += strlen(next) + 1; }