From: Bram Moolenaar Date: Sat, 21 Nov 2020 12:51:16 +0000 (+0100) Subject: patch 8.2.2026: Coverity warns for possibly using not NUL terminated string X-Git-Tag: v8.2.2026 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e79cdb69a4905ccf766494265d4c6f8701d10c39;p=vim patch 8.2.2026: Coverity warns for possibly using not NUL terminated string Problem: Coverity warns for possibly using not NUL terminated string. Solution: Put a NUL in b0_hname just in case. --- diff --git a/src/memline.c b/src/memline.c index bf6a18499..19b87d7ee 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 d7e1fee6e..80253553e 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2026, /**/ 2025, /**/