0106-top: Fix snprintf() call in capsmk().

Replace "snprintf(msg, sizeof(pmt)" with "snprintf(msg, sizeof(msg)".
Luckily sizeof(pmt) == sizeof(msg), but fix it anyway.
This commit is contained in:
Qualys Security Advisory 1970-01-01 00:00:00 +00:00 committed by Craig Small
parent f02fff62fb
commit 2c461c8b05

View File

@ -659,7 +659,7 @@ static void capsmk (WIN_t *q) {
} else {
q->capclr_sum[0] = '\0';
#ifdef USE_X_COLHDR
snprintf(q->capclr_msg, sizeof(q->capclr_pmt), "%s%s"
snprintf(q->capclr_msg, sizeof(q->capclr_msg), "%s%s"
, Cap_reverse, q->cap_bold);
#else
STRLCPY(q->capclr_msg, Cap_reverse)