Skip to content
Snippets Groups Projects
Commit 30d4aa79 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Fix Borland C++ compile failure.

parent 9c8d7588
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #1207 passed
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment