changeset 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 b0a7d1e90362
children 5a10c12b4148
files src/message.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
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);
--- a/src/version.c
+++ b/src/version.c
@@ -764,6 +764,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2292,
+/**/
     2291,
 /**/
     2290,