summaryrefslogtreecommitdiff
path: root/stdio-common/fxprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common/fxprintf.c')
-rw-r--r--stdio-common/fxprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stdio-common/fxprintf.c b/stdio-common/fxprintf.c
index 3b3cc5cdda..6fecb31fb7 100644
--- a/stdio-common/fxprintf.c
+++ b/stdio-common/fxprintf.c
@@ -37,9 +37,9 @@ __fxprintf (FILE *fp, const char *fmt, ...)
int res;
if (_IO_fwide (fp, 0) > 0)
{
- size_t len = strlen (fmt) + 1, i;
+ size_t len = strlen (fmt) + 1;
wchar_t wfmt[len];
- for (i = 0; i < len; ++i)
+ for (size_t i = 0; i < len; ++i)
{
assert (isascii (fmt[i]));
wfmt[i] = fmt[i];