X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftic.c;h=e6032c80989dd3779d3d062a0d6d0d07b65dd4f9;hp=23282e08d3c49e471331054cc56c0a797c6a6142;hb=43f75d22e281b6230678008b72621a76696f45ba;hpb=40cf934fff2d2790c060619e3a29bd54c20994b0;ds=sidebyside 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';