summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-11-21 13:51:16 +0100
committerBram Moolenaar <Bram@vim.org>2020-11-21 13:51:16 +0100
commite79cdb69a4905ccf766494265d4c6f8701d10c39 (patch)
tree28463c428cf4616ea4140568c9be34c2a5c6c1c3
parent4466ad6baa22485abb1147aca3340cced4778a66 (diff)
patch 8.2.2026: Coverity warns for possibly using not NUL terminated stringv8.2.2026
Problem: Coverity warns for possibly using not NUL terminated string. Solution: Put a NUL in b0_hname just in case.
-rw-r--r--src/memline.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/memline.c b/src/memline.c
index bf6a18499c..19b87d7ee9 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -2252,6 +2252,7 @@ swapfile_unchanged(char_u *fname)
mch_get_host_name(hostname, B0_HNAME_SIZE);
hostname[B0_HNAME_SIZE - 1] = NUL;
+ b0.b0_hname[B0_HNAME_SIZE - 1] = NUL; // in case of corruption
if (STRICMP(b0.b0_hname, hostname) != 0)
ret = FALSE;
}
diff --git a/src/version.c b/src/version.c
index d7e1fee6e6..80253553ef 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 2026,
+/**/
2025,
/**/
2024,