diff src/message.c @ 10040:48f70e0c696a v7.4.2292

commit https://github.com/vim/vim/commit/965ed14973fd3f1b2aace7bae4d4722b71ca04f9 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Aug 29 22:31:24 2016 +0200 patch 7.4.2292 Problem: Not all systems understand %F in printf(). Solution: Use %f.
author Christian Brabandt <cb@256bit.org>
date Mon, 29 Aug 2016 22:45:06 +0200
parents 7cf4e210cf3c
children 4aead6a9b7a9
line wrap: on
line diff
--- a/src/message.c
+++ b/src/message.c
@@ -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);