commit | 965ed14973fd3f1b2aace7bae4d4722b71ca04f9 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon Aug 29 22:31:24 2016 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon Aug 29 22:31:24 2016 +0200 |
tree | 1157086fa31c19ac76842ff34b5e4df0d7a5786a | |
parent | 04186095346daa60e82e981dad114de2b641d672 [diff] [blame] |
patch 7.4.2292 Problem: Not all systems understand %F in printf(). Solution: Use %f.
diff --git a/src/message.c b/src/message.c index 264d15a..90c4ffb 100644 --- a/src/message.c +++ b/src/message.c
@@ -4797,7 +4797,7 @@ 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);