# HG changeset patch # User Bram Moolenaar # Date 1605963603 -3600 # Node ID 4cce4a5d3fd31108589cb329e8dd3e722cc959e0 # Parent e7c125224b1abf0a2477d7dbf0e8c7f73810af14 patch 8.2.2026: Coverity warns for possibly using not NUL terminated string Commit: https://github.com/vim/vim/commit/e79cdb69a4905ccf766494265d4c6f8701d10c39 Author: Bram Moolenaar Date: Sat Nov 21 13:51:16 2020 +0100 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 --- 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 --- 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,