Index: trunk/src/conf_core.h =================================================================== --- trunk/src/conf_core.h (revision 3691) +++ trunk/src/conf_core.h (revision 3692) @@ -83,10 +83,9 @@ CFT_STRING library_shell; CFT_LIST library_search_paths; - CFT_STRING emergency_name; /* file name template for emergency save anonymous .pcb files (when pcb-rnd crashes); optional fields: %P --> pid */ + CFT_STRING emergency_name; /* file name template for emergency save anonymous .pcb files (when pcb-rnd crashes); optional field: %ld --> pid; must be shorter than 240 characters. */ CFT_STRING backup_name; /* file name template for periodic backup anonymous .pcb files; optional fields: %P --> pid */ - CFT_STRING save_command; CFT_LIST default_font_file; /* name of default font file (list of names to search) */ CFT_LIST default_pcb_file; Index: trunk/src/pcb-conf.lht =================================================================== --- trunk/src/pcb-conf.lht (revision 3691) +++ trunk/src/pcb-conf.lht (revision 3692) @@ -84,7 +84,7 @@ # file_path = {} library_shell = {} - emergency_name = {PCB.%P.save} + emergency_name = {PCB.%ld.save} backup_name = {PCB.%P.backup} li:library_search_paths = { Index: trunk/src/plug_io.c =================================================================== --- trunk/src/plug_io.c (revision 3691) +++ trunk/src/plug_io.c (revision 3692) @@ -601,11 +601,11 @@ */ void SaveInTMP(void) { - char filename[80]; + char filename[256]; /* memory might have been released before this function is called */ if (PCB && PCB->Changed) { - sprintf(filename, conf_core.rc.emergency_name, pcb_getpid()); + sprintf(filename, conf_core.rc.emergency_name, (long int)pcb_getpid()); Message(PCB_MSG_DEFAULT, _("Trying to save your layout in '%s'\n"), filename); WritePCBFile(filename, DEFAULT_FMT); }