# HG changeset patch # User Bram Moolenaar # Date 1583021754 -3600 # Node ID df0a6cba5c3d2923207eca7afc93a8b8af6d2a4c # Parent 0957ce5072d478ec434cb5ff805ae18b8fd265b8 patch 8.2.0337: build fails on a few systems Commit: https://github.com/vim/vim/commit/b54b8e0c86b0590394803157818c72412a6f0b6a Author: Bram Moolenaar Date: Sun Mar 1 01:05:53 2020 +0100 patch 8.2.0337: build fails on a few systems Problem: Build fails on a few systems. Solution: Use vim_snprintf() instead of snprintf(). diff --git a/src/cmdexpand.c b/src/cmdexpand.c --- a/src/cmdexpand.c +++ b/src/cmdexpand.c @@ -2124,7 +2124,7 @@ ExpandFromContext( int len = (int)STRLEN(pat) + 20; tofree = alloc(len); - snprintf((char *)tofree, len, "^\\d\\+_%s", pat + 3); + vim_snprintf((char *)tofree, len, "^\\d\\+_%s", pat + 3); pat = tofree; } diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -739,6 +739,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 337, +/**/ 336, /**/ 335,