diff options
-rw-r--r-- | src/userfunc.c | 2 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/userfunc.c b/src/userfunc.c index e21f15c142..d8c943b23d 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -870,7 +870,7 @@ get_function_body( end = p + STRLEN(p) - 1; while (end > p && VIM_ISWHITE(*end)) --end; - if (*end == '{') + if (end > p && *end == '{') { --end; while (end > p && VIM_ISWHITE(*end)) diff --git a/src/version.c b/src/version.c index f436e54904..5b3a97b439 100644 --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3170, +/**/ 3169, /**/ 3168, |