X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=progs%2Ftic.c;h=e6032c80989dd3779d3d062a0d6d0d07b65dd4f9;hb=a2ea66477b08cf07200cf7c319447d61d1360d85;hp=23282e08d3c49e471331054cc56c0a797c6a6142;hpb=40cf934fff2d2790c060619e3a29bd54c20994b0;p=ncurses.git diff --git a/progs/tic.c b/progs/tic.c index 23282e08..e6032c80 100644 --- a/progs/tic.c +++ b/progs/tic.c @@ -44,7 +44,7 @@ #include #include -MODULE_ID("$Id: tic.c,v 1.140 2010/01/02 22:54:01 tom Exp $") +MODULE_ID("$Id: tic.c,v 1.141 2010/05/01 21:17:23 tom Exp $") const char *_nc_progname = "tic"; @@ -347,6 +347,9 @@ stripped(char *src) if ((dst = strdup(src)) == NULL) failed("strdup"); + + assert(dst != 0); + len = strlen(dst); while (--len != 0 && isspace(UChar(dst[len]))) dst[len] = '\0';