rem: sprintf(q->capclr_rowhigh, "%s%s"
add: snprintf(q->capclr_rowhigh, sizeof(q->capclr_rowhigh), "%s%s"
context: static void capsmk (WIN_t *q){   /* macro to test if a basic (non-color) capability is valid         thanks: Floyd Davidson <floyd@ptialaska.net> */#define tIF(s)  s ? s : ""   static int capsdone = 0;      /* we must NOT disturb our 'empty' terminfo strings! */   if (Batch) return;      /* these are the unchangeable puppies, so we only do 'em once */   if (!capsdone) {      strcpy(Cap_bold, tIF(enter_bold_mode));      strcpy(Cap_clr_eol, tIF(clr_eol));      strcpy(Cap_clr_eos, tIF(clr_eos));      strcpy(Cap_clr_scr, tIF(clear_screen));      strcpy(Cap_curs_huge, tIF(cursor_visible));      strcpy(Cap_curs_norm, tIF(cursor_normal));      strcpy(Cap_home, tIF(cursor_home));      strcpy(Cap_norm, tIF(exit_attribute_mode));      strcpy(Cap_reverse, tIF(enter_reverse_mode));      sprintf(Caps_off, "%s%s", Cap_norm, tIF(orig_pair));      if (tgoto(cursor_address, 1, 1)) Cap_can_goto = 1;      capsdone = 1;   }      /* the key to NO run-time costs for configurable colors -- we spend a         little time with the user now setting up our terminfo strings, and         the job's done until he/she/it has a change-of-heart */   if (CHKw(q, Show_COLORS) && max_colors > 0) {      strcpy(q->capclr_sum, tparm(set_a_foreground, q->summclr));      sprintf(q->capclr_msg, "%s%s"         , tparm(set_a_foreground, q->msgsclr), Cap_reverse);      sprintf(q->capclr_pmt, "%s%s"         , tparm(set_a_foreground, q->msgsclr), Cap_bold);      sprintf(q->capclr_hdr, "%s%s"         , tparm(set_a_foreground, q->headclr), Cap_reverse);      sprintf(q->capclr_rownorm, "%s%s"         , Caps_off, tparm(set_a_foreground, q->taskclr));   } else {      q->capclr_sum[0] = '\0';      strcpy(q->capclr_msg, Cap_reverse);      strcpy(q->capclr_pmt, Cap_bold);      strcpy(q->capclr_hdr, Cap_reverse);      strcpy(q->capclr_rownorm, Cap_norm);   }      /* this guy's a composite, so we do him outside the if */   sprintf(q->capclr_rowhigh, "%s%s"      , q->capclr_rownorm, CHKw(q, Show_HIBOLD) ? Cap_bold : Cap_reverse);   q->len_rownorm = strlen(q->capclr_rownorm);   q->len_rowhigh = strlen(q->capclr_rowhigh);#undef tIF}