Piotr Caban : msvcrt: Fix loop condition when printing Inf or NaN.
Module: wine Branch: master Commit: bffc240b4eab673b0d30c112551f540c5c4f2a4f URL: http://source.winehq.org/git/wine.git/?a=commit;h=bffc240b4eab673b0d30c11255... Author: Piotr Caban <piotr(a)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;
participants (1)
-
Alexandre Julliard