diff options
author | ZyX <kp-pav@yandex.ru> | 2016-03-07 08:54:39 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-04-18 02:48:20 +0300 |
commit | eb806c96205ff776d9cd5df82da72c14e030f6d6 (patch) | |
tree | 01a1342880f265708dfda5568cef2cc80b5f6ea3 /src/nvim/message.c | |
parent | 52c6cc21899d0d5bf0dffc2cee849063e176e931 (diff) | |
download | rneovim-eb806c96205ff776d9cd5df82da72c14e030f6d6.tar.gz rneovim-eb806c96205ff776d9cd5df82da72c14e030f6d6.tar.bz2 rneovim-eb806c96205ff776d9cd5df82da72c14e030f6d6.zip |
eval/decode: Make sure that error messages do not cause overflow
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index c4207fbe9e..21fd97ed21 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -61,14 +61,8 @@ static int confirm_msg_used = FALSE; /* displaying confirm_msg */ static char_u *confirm_msg = NULL; /* ":confirm" message */ static char_u *confirm_msg_tail; /* tail of confirm_msg */ -struct msg_hist { - struct msg_hist *next; - char_u *msg; - int attr; -}; - -static struct msg_hist *first_msg_hist = NULL; -static struct msg_hist *last_msg_hist = NULL; +MessageHistoryEntry *first_msg_hist = NULL; +MessageHistoryEntry *last_msg_hist = NULL; static int msg_hist_len = 0; static FILE *verbose_fd = NULL; |