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:
parent
f02fff62fb
commit
2c461c8b05
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user