Index: export_openems.c =================================================================== --- export_openems.c (revision 25226) +++ export_openems.c (revision 25227) @@ -650,7 +650,7 @@ if (!filename) filename = "pcb.m"; - f = pcb_fopen(filename, "wb"); + f = pcb_fopen(&PCB->hidlib, filename, "wb"); if (!f) { perror(filename); return; @@ -664,7 +664,7 @@ if (strcmp(end, ".m") != 0) end = runfn + len; strcpy(end, ".sim.m"); - fsim = pcb_fopen(runfn, "wb"); + fsim = pcb_fopen(&PCB->hidlib, runfn, "wb"); if (fsim == NULL) { perror(runfn); return; Index: mesh.c =================================================================== --- mesh.c (revision 25226) +++ mesh.c (revision 25227) @@ -966,7 +966,7 @@ default_file = pcb_strdup(fname); } - f = pcb_fopen(fname, "w"); + f = pcb_fopen(&PCB->hidlib, fname, "w"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "Can not open '%s' for write\n", fname); return; @@ -998,7 +998,7 @@ default_file = pcb_strdup(fname); } - f = pcb_fopen(fname, "r"); + f = pcb_fopen(&PCB->hidlib, fname, "r"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "Can not open '%s' for read\n", fname); return;