Index: dxf.c =================================================================== --- dxf.c (revision 25226) +++ dxf.c (revision 25227) @@ -290,7 +290,7 @@ filename = "pcb.dxf"; if (dxf_cam.fn_template == NULL) { - dxf_ctx.f = pcb_fopen(dxf_cam.active ? dxf_cam.fn : filename, "wb"); + dxf_ctx.f = pcb_fopen(&PCB->hidlib, dxf_cam.active ? dxf_cam.fn : filename, "wb"); if (!dxf_ctx.f) { perror(filename); return; @@ -307,7 +307,7 @@ else { char *real_fn; dxf_ctx.temp = NULL; - real_fn = pcb_fopen_check(fn, "r"); + real_fn = pcb_fopen_check(&PCB->hidlib, fn, "r"); if (real_fn != NULL) dxf_ctx.temp = lht_dom_load(real_fn, &errmsg); free(real_fn); @@ -363,7 +363,7 @@ fclose(dxf_ctx.f); } - dxf_ctx.f = pcb_fopen(dxf_cam.fn, "wb"); + dxf_ctx.f = pcb_fopen(&PCB->hidlib, dxf_cam.fn, "wb"); if (!dxf_ctx.f) { perror(dxf_cam.fn); return 0;