mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 22:08:18 +00:00
vim-patch:7.4.2292 (#6304)
Problem: Not all systems understand %F in printf().
Solution: Use %f.
965ed14973
This commit is contained in:

committed by
Justin M. Keyes

parent
147e115dd9
commit
1de50acc41
@@ -1228,7 +1228,7 @@ int vim_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap,
|
||||
l += snprintf(format + 1, sizeof(format) - 1, ".%d",
|
||||
(int)precision);
|
||||
}
|
||||
format[l] = fmt_spec;
|
||||
format[l] = fmt_spec == 'F' ? 'f' : fmt_spec;
|
||||
format[l + 1] = NUL;
|
||||
assert(l + 1 < (int)sizeof(format));
|
||||
str_arg_l = (size_t)snprintf(tmp, sizeof(tmp), format, f);
|
||||
|
Reference in New Issue
Block a user