[w3m-dev 03942] Save history
* history.c (saveHistory): check tmpfile write error From: Takahashi Youichirou <nikuq@hk.airnet.ne.jp>
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2003-07-23 Takahashi Youichirou <nikuq@hk.airnet.ne.jp>
|
||||||
|
|
||||||
|
* [w3m-dev 03942] Save history
|
||||||
|
* history.c (saveHistory): check tmpfile write error
|
||||||
|
|
||||||
2003-07-23 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
2003-07-23 Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
|
||||||
|
|
||||||
* [w3m-dev 03941] fix character encoding for 'v'
|
* [w3m-dev 03941] fix character encoding for 'v'
|
||||||
@@ -7956,4 +7961,4 @@ a * [w3m-dev 03276] compile error on EWS4800
|
|||||||
* release-0-2-1
|
* release-0-2-1
|
||||||
* import w3m-0.2.1
|
* import w3m-0.2.1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.854 2003/07/22 17:27:19 ukai Exp $
|
$Id: ChangeLog,v 1.855 2003/07/22 17:29:47 ukai Exp $
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
/* $Id: history.c,v 1.9 2003/02/05 16:43:57 ukai Exp $ */
|
/* $Id: history.c,v 1.10 2003/07/22 17:29:48 ukai Exp $ */
|
||||||
#include "fm.h"
|
#include "fm.h"
|
||||||
|
|
||||||
#ifdef USE_HISTORY
|
#ifdef USE_HISTORY
|
||||||
@@ -72,7 +72,10 @@ saveHistory(Hist *hist, size_t size)
|
|||||||
size++;
|
size++;
|
||||||
for (; item; item = item->next)
|
for (; item; item = item->next)
|
||||||
fprintf(f, "%s\n", (char *)item->ptr);
|
fprintf(f, "%s\n", (char *)item->ptr);
|
||||||
fclose(f);
|
if (fclose(f) == EOF) {
|
||||||
|
disp_err_message("Can't save history", FALSE);
|
||||||
|
return;
|
||||||
|
}
|
||||||
rename(tmpf, rcFile(HISTORY_FILE));
|
rename(tmpf, rcFile(HISTORY_FILE));
|
||||||
}
|
}
|
||||||
#endif /* USE_HISTORY */
|
#endif /* USE_HISTORY */
|
||||||
|
|||||||
Reference in New Issue
Block a user