From a445172661b32dba36b516ff9438e1b4b0709545 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 2 May 2018 10:05:02 +0200 Subject: [PATCH] makefsdata: fix hiding local variable 'i' --- src/apps/http/makefsdata/makefsdata.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apps/http/makefsdata/makefsdata.c b/src/apps/http/makefsdata/makefsdata.c index 01582c19..f4dbde4e 100644 --- a/src/apps/http/makefsdata/makefsdata.c +++ b/src/apps/http/makefsdata/makefsdata.c @@ -455,9 +455,9 @@ int process_sub(FILE *data_file, FILE *struct_file) if (ret == 0) { #if (defined _MSC_VER || defined __MINGW32__) && (defined _UNICODE) - size_t i; + size_t num_char_converted; char currName[256]; - wcstombs_s(&i, currName, sizeof(currName), file.name, sizeof(currName)); + wcstombs_s(&num_char_converted, currName, sizeof(currName), file.name, sizeof(currName)); #else const char *currName = file.name; #endif @@ -495,9 +495,9 @@ int process_sub(FILE *data_file, FILE *struct_file) if (ret == 0) { if (!file.is_dir) { #if (defined _MSC_VER || defined __MINGW32__) && (defined _UNICODE) - size_t i; + size_t num_char_converted; char curName[256]; - wcstombs_s(&i, curName, sizeof(curName), file.name, sizeof(curName)); + wcstombs_s(&num_char_converted, curName, sizeof(curName), file.name, sizeof(curName)); #else const char *curName = file.name; #endif