Skip to content
Snippets Groups Projects
Commit 5713f711 authored by rswindell's avatar rswindell
Browse files

Fixed access violations/segfaults when adding alternate file path

at the end of the list.
parent 7983d9ae
No related branches found
No related tags found
No related merge requests found
......@@ -1042,7 +1042,11 @@ multiple CD-ROMs or hard disks.
if((cfg.altpath[i]=(char *)MALLOC(LEN_DIR+1))==NULL) {
errormsg(WHERE,ERR_ALLOC,nulstr,LEN_DIR+1);
continue; }
memcpy(cfg.altpath[i],cfg.altpath[i+1],LEN_DIR+1); }
if(i>=cfg.altpaths)
j=i-1;
else
j=i+1;
memcpy(cfg.altpath[i],cfg.altpath[j],LEN_DIR+1); }
cfg.altpaths++;
uifc.changes=1;
continue; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment