patch 8.2.2515: memory access error when truncating an empty message

Problem:    Memory access error when truncating an empty message.
Solution:   Check for an empty string. (Dominique Pellé, closes #7841)
This commit is contained in:
Bram Moolenaar
2021-02-14 15:37:30 +01:00
parent 2379f87eb4
commit 6281815ecc
3 changed files with 18 additions and 0 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2515,
/**/
2514,
/**/