]> granicus.if.org Git - vim/commitdiff
patch 8.2.0337: build fails on a few systems v8.2.0337
authorBram Moolenaar <Bram@vim.org>
Sun, 1 Mar 2020 00:05:53 +0000 (01:05 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 1 Mar 2020 00:05:53 +0000 (01:05 +0100)
Problem:    Build fails on a few systems.
Solution:   Use vim_snprintf() instead of snprintf().

src/cmdexpand.c
src/version.c

index ece5a468b18de784923acf26a51fd26d21fac550..1f70dc58e4d1d4bb5ee321aeebb05164d3813bdf 100644 (file)
@@ -2124,7 +2124,7 @@ ExpandFromContext(
        int len = (int)STRLEN(pat) + 20;
 
        tofree = alloc(len);
-       snprintf((char *)tofree, len, "^<SNR>\\d\\+_%s", pat + 3);
+       vim_snprintf((char *)tofree, len, "^<SNR>\\d\\+_%s", pat + 3);
        pat = tofree;
     }
 
index 06b95118161db4e1f3f9a72775538579789e46e5..6c519cb3458218778e3c1e1d0973314fbeb638cc 100644 (file)
@@ -738,6 +738,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    337,
 /**/
     336,
 /**/