patch 8.2.0337: build fails on a few systems

Problem:    Build fails on a few systems.
Solution:   Use vim_snprintf() instead of snprintf().
This commit is contained in:
Bram Moolenaar
2020-03-01 01:05:53 +01:00
parent 42a480bf72
commit b54b8e0c86
2 changed files with 3 additions and 1 deletions

View File

@ -2124,7 +2124,7 @@ ExpandFromContext(
int len = (int)STRLEN(pat) + 20; int len = (int)STRLEN(pat) + 20;
tofree = alloc(len); tofree = alloc(len);
snprintf((char *)tofree, len, "^<SNR>\\d\\+_%s", pat + 3); vim_snprintf((char *)tofree, len, "^<SNR>\\d\\+_%s", pat + 3);
pat = tofree; pat = tofree;
} }

View File

@ -738,6 +738,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
337,
/**/ /**/
336, 336,
/**/ /**/