X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftinfo%2Fmake_hash.c;h=09748ee3e1cedcffb93124070b9b3c22adffdedc;hp=9274b87713434f338e45c28d4645be46509c5019;hb=a8dfaf0998c91b39c5c0a4913987cd67ca622bff;hpb=cdaf29481becd3e1c21baa574ac1ab88ea5f3d38 diff --git a/ncurses/tinfo/make_hash.c b/ncurses/tinfo/make_hash.c index 9274b877..09748ee3 100644 --- a/ncurses/tinfo/make_hash.c +++ b/ncurses/tinfo/make_hash.c @@ -43,7 +43,7 @@ #include -MODULE_ID("$Id: make_hash.c,v 1.26 2019/03/10 01:10:15 tom Exp $") +MODULE_ID("$Id: make_hash.c,v 1.27 2019/07/20 20:14:46 tom Exp $") /* * _nc_make_hash_table() @@ -222,16 +222,16 @@ get_type(int type_mask) { static char result[40]; unsigned n; - strcpy(result, L_PAREN); + _nc_STRCPY(result, L_PAREN, sizeof(result)); for (n = 0; n < 3; ++n) { if ((1 << n) & type_mask) { if (result[1]) - strcat(result, "|"); - strcat(result, "1<<"); - strcat(result, typenames[n]); + _nc_STRCAT(result, "|", sizeof(result)); + _nc_STRCAT(result, "1<<", sizeof(result)); + _nc_STRCAT(result, typenames[n], sizeof(result)); } } - strcat(result, R_PAREN); + _nc_STRCAT(result, R_PAREN, sizeof(result)); return result; }