diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-14 15:26:44 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-12-14 15:26:44 +0000 |
commit | 021ce52a525a03fbff93ccb810cab85c79720e56 (patch) | |
tree | b67b0ee9db877a99f1e7705bbc6d51797e7f38c3 /file.c | |
parent | [w3m-dev 03569] Re: preserve timestamp (diff) | |
download | w3m-021ce52a525a03fbff93ccb810cab85c79720e56.tar.gz w3m-021ce52a525a03fbff93ccb810cab85c79720e56.zip |
fix indent
Diffstat (limited to '')
-rw-r--r-- | file.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,4 +1,4 @@ -/* $Id: file.c,v 1.161 2002/12/14 15:24:03 ukai Exp $ */ +/* $Id: file.c,v 1.162 2002/12/14 15:26:44 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include "myctype.h" @@ -1898,7 +1898,8 @@ loadGeneralFile(char *path, ParsedURL *volatile current, char *referer, if (PreserveTimestamp && !stat(pu.real_file, &st)) f.modtime = st.st_mtime; file = conv_from_system(guess_save_name(NULL, pu.real_file)); - } else + } + else file = guess_save_name(t_buf, pu.file); doFileSave(f, file); if (f.scheme == SCM_FTP) @@ -7866,9 +7867,9 @@ guess_save_name(Buffer *buf, char *path) matchattr(q, "filename", 8, &name)) path = name->ptr; else if ((p = checkHeader(buf, "Content-Type:")) != NULL && - (q = strcasestr(p, "name")) != NULL && - (q == p || IS_SPACE(*(q - 1)) || *(q - 1) == ';') && - matchattr(q, "name", 4, &name)) + (q = strcasestr(p, "name")) != NULL && + (q == p || IS_SPACE(*(q - 1)) || *(q - 1) == ';') && + matchattr(q, "name", 4, &name)) path = name->ptr; } return guess_filename(path); |