diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-22 13:30:02 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-22 13:30:02 +0000 |
commit | 4493ae705f57d21e38c2a1ecb7963e75059b8988 (patch) | |
tree | 4331d0212ac88efd6e6774c8bcd97ba20fbbe774 /url.c | |
parent | [w3m-dev 02494] (diff) | |
download | w3m-4493ae705f57d21e38c2a1ecb7963e75059b8988.tar.gz w3m-4493ae705f57d21e38c2a1ecb7963e75059b8988.zip |
[w3m-dev 02497]
From: WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp>
Diffstat (limited to 'url.c')
-rw-r--r-- | url.c | 16 |
1 files changed, 4 insertions, 12 deletions
@@ -1,4 +1,4 @@ -/* $Id: url.c,v 1.7 2001/11/21 16:29:47 ukai Exp $ */ +/* $Id: url.c,v 1.8 2001/11/22 13:30:02 ukai Exp $ */ #include "fm.h" #include <sys/types.h> #include <sys/socket.h> @@ -931,18 +931,10 @@ parseURL2(char *url, ParsedURL * pu, ParsedURL * current) #ifdef __EMX__ if (pu->scheme == SCM_LOCAL) { if (strncmp(pu->file, "/$LIB/", 6)) { - char *arg, abs[_MAX_PATH], tmp[_MAX_PATH]; + char abs[_MAX_PATH]; - if (!(arg = strchr(strcpy(tmp, pu->file), '?'))) { - _abspath(abs, tmp, _MAX_PATH); - pu->file = cleanupName(abs); - } - else { - *arg = 0; - _abspath(abs, tmp, _MAX_PATH); - *arg = '?'; - pu->file = cleanupName(strcat(abs, arg)); - } + _abspath(abs, pu->file, _MAX_PATH); + pu->file = cleanupName(abs); } } #else |