>From 598b89288192530691ecb0b90f6ed93c05fdea64 Mon Sep 17 00:00:00 2001
From: John Donoghue <john.david.donoghue@gmail.com>
Date: Mon, 6 Apr 2015 09:29:43 -0400
Subject: [PATCH] Fix printf("%g") width format out by one in some instances
 (Bug 362)

* mingw-w64-crt\stdio\mingw_pformat.c
  (__pformat_emit_float): change width > len => width >= len
---
 mingw-w64-crt/stdio/mingw_pformat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mingw-w64-crt/stdio/mingw_pformat.c b/mingw-w64-crt/stdio/mingw_pformat.c
index 9f6c36d..72d8c39 100644
--- a/mingw-w64-crt/stdio/mingw_pformat.c
+++ b/mingw-w64-crt/stdio/mingw_pformat.c
@@ -1299,7 +1299,7 @@ void __pformat_emit_float( int sign, char *value, int len, __pformat_t *stream )
      * reserve space in the output field, for the required number of
      * decimal digits to be placed before the decimal point...
      */
-    if( stream->width > len )
+    if( stream->width >= len )
       /*
        * adjusting as appropriate, when width is sufficient...
        */
-- 
1.8.0.msysgit.0

