=================================================================== RCS file: /home/cvs/OpenXM_contrib2/windows/asir32gui/io.c,v retrieving revision 1.4 retrieving revision 1.5 diff -u -p -r1.4 -r1.5 --- OpenXM_contrib2/windows/asir32gui/io.c 2005/10/19 06:22:59 1.4 +++ OpenXM_contrib2/windows/asir32gui/io.c 2009/08/25 08:01:03 1.5 @@ -259,19 +259,25 @@ void read_and_insert() } } +static char history_path[BUFSIZ]; +static char history_errmsg[BUFSIZ]; + void init_input_history() { + char rootdir[BUFSIZ]; + get_rootdir(rootdir,sizeof(rootdir),history_errmsg); + sprintf(history_path,"%s\\bin\\%s",rootdir,HISTORY); init_hist(MAXHIST); } void write_input_history() { - write_hist(HISTORY); + write_hist(history_path); } void read_input_history() { - read_hist(HISTORY); + read_hist(history_path); } void send_intr() {