Charles, the fix works if PCB->Filename contains full path. pcb still segfaults if invoked with relative file name. i.e.:
> pcb /path/to/board.pcb => OK > pcb board.pcb => segmentation fault on File->Load
Segfault happens because of this expression:
*strrchr(default_dir, PCB_DIR_SEPARATOR_C) = 0;
strrchr() returns NULL if there's no PCB_DIR_SEPARATOR_C in default_dir (that is the case for relative file path).
Charles, the fix works if PCB->Filename contains full path.
pcb still segfaults if invoked with relative file name. i.e.:
> pcb /path/to/board.pcb => OK
> pcb board.pcb => segmentation fault on File->Load
Segfault happens because of this expression:
*strrchr( default_ dir, PCB_DIR_ SEPARATOR_ C) = 0;
strrchr() returns NULL if there's no PCB_DIR_SEPARATOR_C in default_dir (that is the case for relative file path).