Index: excellon.c =================================================================== --- excellon.c (revision 25226) +++ excellon.c (revision 25227) @@ -107,7 +107,7 @@ void pcb_drill_export_excellon(pcb_board_t *pcb, pcb_drill_ctx_t *ctx, int force_g85, int coord_fmt_idx, const char *fn) { - FILE *f = pcb_fopen(fn, "wb"); /* Binary needed to force CR-LF */ + FILE *f = pcb_fopen(&PCB->hidlib, fn, "wb"); /* Binary needed to force CR-LF */ coord_format_t *cfmt; if (f == NULL) {