diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-07-11 22:34:51 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-07-11 22:34:51 +0200 |
commit | 8327d1df1754b33d8a93b3411f30692f0042f4ce (patch) | |
tree | 6f2d59fd480125984eef99d22941edc37f23d31c /src/evalfunc.c | |
parent | 292eff0c5aacb8531d65509679b6c29eae8dc22a (diff) |
patch 8.0.0709: libvterm cannot use vsnprintf()v8.0.0709
Problem: Libvterm cannot use vsnprintf(), it does not exist in C90.
Solution: Use vim_vsnprintf() instead.
Diffstat (limited to 'src/evalfunc.c')
-rw-r--r-- | src/evalfunc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/evalfunc.c b/src/evalfunc.c index 3af5cd74be..75ebb20db9 100644 --- a/src/evalfunc.c +++ b/src/evalfunc.c @@ -8043,14 +8043,15 @@ f_printf(typval_T *argvars, typval_T *rettv) /* Get the required length, allocate the buffer and do it for real. */ did_emsg = FALSE; fmt = (char *)get_tv_string_buf(&argvars[0], buf); - len = vim_vsnprintf(NULL, 0, fmt, ap, argvars + 1); + len = vim_vsnprintf_typval(NULL, 0, fmt, ap, argvars + 1); if (!did_emsg) { s = alloc(len + 1); if (s != NULL) { rettv->vval.v_string = s; - (void)vim_vsnprintf((char *)s, len + 1, fmt, ap, argvars + 1); + (void)vim_vsnprintf_typval((char *)s, len + 1, fmt, + ap, argvars + 1); } } did_emsg |= saved_did_emsg; |