From bffc240b4eab673b0d30c112551f540c5c4f2a4f Mon Sep 17 00:00:00 2001 From: Piotr Caban Date: Tue, 17 Sep 2013 15:23:39 +0200 Subject: [PATCH] msvcrt: Fix loop condition when printing Inf or NaN. --- dlls/msvcrt/printf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msvcrt/printf.h b/dlls/msvcrt/printf.h index dd36f59a849..96e7845d7f6 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;