makefsdata: fix hiding local variable 'i'

This commit is contained in:
goldsimon 2018-05-02 10:05:02 +02:00
parent 059bc952f6
commit a445172661

View File

@ -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