mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 8.2.4074: going over the end of NameBuff
Problem: Going over the end of NameBuff. Solution: Check length when appending a space.
This commit is contained in:
@@ -462,12 +462,13 @@ win_redr_status(win_T *wp, int ignore_pum UNUSED)
|
||||
p = NameBuff;
|
||||
len = (int)STRLEN(p);
|
||||
|
||||
if (bt_help(wp->w_buffer)
|
||||
if ((bt_help(wp->w_buffer)
|
||||
#ifdef FEAT_QUICKFIX
|
||||
|| wp->w_p_pvw
|
||||
|| wp->w_p_pvw
|
||||
#endif
|
||||
|| bufIsChanged(wp->w_buffer)
|
||||
|| wp->w_buffer->b_p_ro)
|
||||
|| bufIsChanged(wp->w_buffer)
|
||||
|| wp->w_buffer->b_p_ro)
|
||||
&& len < MAXPATHL - 1)
|
||||
*(p + len++) = ' ';
|
||||
if (bt_help(wp->w_buffer))
|
||||
{
|
||||
|
Reference in New Issue
Block a user