From 30d4aa79220f8f7481bad092c25a00ebdc00cbda Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Sun, 24 Jan 2021 14:24:32 -0800 Subject: [PATCH] Fix Borland C++ compile failure. --- src/xpdev/ini_file.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xpdev/ini_file.c b/src/xpdev/ini_file.c index af44d4160f..eb7f7482a7 100644 --- a/src/xpdev/ini_file.c +++ b/src/xpdev/ini_file.c @@ -2326,14 +2326,15 @@ str_list_t iniReadFile(FILE* fp) inc_len=strlen(INI_INCLUDE_DIRECTIVE); for(i=0; list[i]!=NULL; i++) { if(strnicmp(list[i],INI_INCLUDE_DIRECTIVE,inc_len)==0) { + glob_t gl; + size_t j; p=list[i]+inc_len; SKIP_WHITESPACE(p); truncsp(p); - glob_t gl; glob(p, GLOB_MARK, NULL, &gl); safe_snprintf(str, sizeof(str), "; %s - %lu matches found", list[i], (ulong)gl.gl_pathc); strListReplace(list, i, str); - for(size_t j = 0; j < gl.gl_pathc; j++) { + for(j = 0; j < gl.gl_pathc; j++) { char* fname = gl.gl_pathv[j]; if(*lastchar(fname) == '/') continue; -- GitLab