pcb

Comment 4 for bug 1788845

Revision history for this message
dmn (graahnul.grom) wrote :

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).