aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/file.c b/file.c
index a8c16be..bd80c6a 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.193 2003/01/19 08:28:40 ukai Exp $ */
+/* $Id: file.c,v 1.194 2003/01/20 15:30:20 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -1910,7 +1910,8 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer,
tmp = tmpfname(TMPF_SRC, ".html");
src = fopen(tmp->ptr, "w");
if (src) {
- Strfputs(conv_str(page, InnerCode, code), src);
+ Str s = conv_str(page, InnerCode, code);
+ Strfputs(s, src);
fclose(src);
}
if (do_download) {
@@ -6940,7 +6941,8 @@ saveBuffer(Buffer *buf, FILE * f)
else
#endif
tmp = Strnew_charp_n(l->lineBuf, l->len);
- Strfputs(conv_str(tmp, InnerCode, DisplayCode), f);
+ tmp = conv_str(tmp, InnerCode, DisplayCode);
+ Strfputs(tmp, f);
if (Strlastchar(tmp) != '\n')
putc('\n', f);
}