0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.2292

Problem:    Not all systems understand %F in printf().
Solution:   Use %f.
This commit is contained in:
Bram Moolenaar
2016-08-29 22:31:24 +02:00
parent 0418609534
commit 965ed14973
2 changed files with 3 additions and 1 deletions

View File

@@ -4797,7 +4797,7 @@ vim_vsnprintf(
precision = max_prec;
l += sprintf(format + l, ".%d", (int)precision);
}
format[l] = fmt_spec;
format[l] = fmt_spec == 'F' ? 'f' : fmt_spec;
format[l + 1] = NUL;
str_arg_l = sprintf(tmp, format, f);