mscvrt: Do not shadow fmt (Coverity).

This commit is contained in:
Marcus Meissner 2011-06-14 13:06:08 +02:00 committed by Alexandre Julliard
parent 7e1ccdef71
commit 034c2cb3fd
1 changed files with 3 additions and 3 deletions

View File

@ -533,7 +533,7 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
if(tmp != buf)
HeapFree(GetProcessHeap(), 0, tmp);
} else if(flags.Format && strchr("aeEfgG", flags.Format)) {
char fmt[20], buf_a[32], *tmp = buf_a, *decimal_point;
char float_fmt[20], buf_a[32], *tmp = buf_a, *decimal_point;
int max_len = (flags.FieldLength>flags.Precision ? flags.FieldLength : flags.Precision) + 10;
if(max_len > sizeof(buf_a))
@ -541,9 +541,9 @@ int FUNC_NAME(pf_printf)(FUNC_NAME(puts_clbk) pf_puts, void *puts_ctx, const API
if(!tmp)
return -1;
FUNC_NAME(pf_rebuild_format_string)(fmt, &flags);
FUNC_NAME(pf_rebuild_format_string)(float_fmt, &flags);
sprintf(tmp, fmt, pf_args(args_ctx, pos, VT_R8, valist).get_double);
sprintf(tmp, float_fmt, pf_args(args_ctx, pos, VT_R8, valist).get_double);
if(toupper(flags.Format)=='E' || toupper(flags.Format)=='G')
FUNC_NAME(pf_fixup_exponent)(tmp);