Piotr Caban : msvcrt: Fix loop condition when printing Inf or NaN.

Alexandre Julliard julliard at winehq.org
Tue Sep 17 15:25:54 CDT 2013


Module: wine
Branch: master
Commit: bffc240b4eab673b0d30c112551f540c5c4f2a4f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bffc240b4eab673b0d30c112551f540c5c4f2a4f

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Tue Sep 17 15:23:39 2013 +0200

msvcrt: Fix loop condition when printing Inf or NaN.

---

 dlls/msvcrt/printf.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msvcrt/printf.h b/dlls/msvcrt/printf.h
index dd36f59..96e7845 100644
--- a/dlls/msvcrt/printf.h
+++ b/dlls/msvcrt/printf.h
@@ -594,7 +594,7 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
                     static const char inf_str[] = "#INF";
                     static const char ind_str[] = "#IND";
 
-                    for(i=1; i<=sizeof(inf ? inf_str : ind_str); i++) {
+                    for(i=1; i<(inf ? sizeof(inf_str) : sizeof(ind_str)); i++) {
                         if(decimal_point[i]<'0' || decimal_point[i]>'9')
                             break;
 




More information about the wine-cvs mailing list