X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fcomp_parse.c;h=24c4852dcedf026cc54397de4c1740a51ac81bdb;hp=b97332ebc990c007f33975cfdc4eca57ac1db062;hb=0237f10a296593d54fd8b2aa144921983085e002;hpb=cccf831ed7c83410c7f6cec2a43e71e9c4278b4c diff --git a/ncurses/tinfo/comp_parse.c b/ncurses/tinfo/comp_parse.c index b97332eb..24c4852d 100644 --- a/ncurses/tinfo/comp_parse.c +++ b/ncurses/tinfo/comp_parse.c @@ -47,7 +47,7 @@ #include -MODULE_ID("$Id: comp_parse.c,v 1.105 2018/04/14 20:33:44 tom Exp $") +MODULE_ID("$Id: comp_parse.c,v 1.106 2018/05/26 14:16:46 tom Exp $") static void sanity_check2(TERMTYPE2 *, bool); NCURSES_IMPEXP void NCURSES_API(*_nc_check_termtype2) (TERMTYPE2 *, bool) = sanity_check2; @@ -80,7 +80,7 @@ force_bar(char *dst, char *src) size_t len = strlen(src); if (len > MAX_NAME_SIZE) len = MAX_NAME_SIZE; - _nc_STRNCPY(dst, src, len); + _nc_STRNCPY(dst, src, MAX_NAME_SIZE); _nc_STRCPY(dst + len, "|", NAMEBUFFER_SIZE - len); src = dst; }