Index: src/plug_io.c =================================================================== --- src/plug_io.c (revision 16976) +++ src/plug_io.c (revision 16977) @@ -33,8 +33,9 @@ /* file save, load, merge ... routines */ -#warning TODO: do not hardwire this, make a function to decide -#define DEFAULT_FMT "pcb" +/* If emergency format is not configured but emergency file name is, default + to saving in the native format */ +#define DEFAULT_EMERGENCY_FMT "lihata" #include "config.h" #include "conf_core.h" @@ -819,7 +820,7 @@ /* memory might have been released before this function is called */ if (PCB && PCB->Changed && (conf_core.rc.emergency_name != NULL) && (*conf_core.rc.emergency_name != '\0')) { - const char *fmt = conf_core.rc.emergency_format == NULL ? DEFAULT_FMT : conf_core.rc.emergency_format; + const char *fmt = conf_core.rc.emergency_format == NULL ? DEFAULT_EMERGENCY_FMT : conf_core.rc.emergency_format; sprintf(filename, conf_core.rc.emergency_name, (long int)pcb_getpid()); pcb_message(PCB_MSG_INFO, _("Trying to save your layout in '%s'\n"), filename); pcb_write_pcb_file(filename, pcb_true, fmt, pcb_true, pcb_false);