Index: board.c =================================================================== --- board.c (revision 37052) +++ board.c (revision 37053) @@ -57,7 +57,7 @@ free(pcb->line_mod_merge); free(pcb->hidlib.name); - free(pcb->hidlib.filename); + free(pcb->hidlib.loadname); free(pcb->PrintFilename); pcb_ratspatch_destroy(pcb); pcb_data_free(pcb->Data); @@ -147,10 +147,10 @@ if (dpcb == 0) { nw = PCB; - if (nw->hidlib.filename != NULL) { + if (nw->hidlib.loadname != NULL) { /* make sure the new PCB doesn't inherit the name and loader of the default pcb */ - free(nw->hidlib.filename); - nw->hidlib.filename = NULL; + free(nw->hidlib.loadname); + nw->hidlib.loadname = NULL; nw->Data->loader = NULL; } } @@ -251,7 +251,7 @@ const char *pcb_board_get_filename(void) { - return PCB->hidlib.filename; + return PCB->hidlib.loadname; } const char *pcb_board_get_name(void)