mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Changed last_slash[-1] to *(last_slash - 1).
This commit is contained in:
parent
b72b6cf387
commit
f306ae9626
@ -1,3 +1,8 @@
|
||||
2000-11-08 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* url.c (construct): Changed last_slash[-1] to *(last_slash - 1).
|
||||
Suggested by Edward J. Sabol.
|
||||
|
||||
2000-11-08 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* url.c (construct): Handle the case where host name is not
|
||||
|
@ -1369,7 +1369,7 @@ construct (const char *url, const char *sub, int subsize, int no_proto)
|
||||
start_insert = end + 1;
|
||||
need_explicit_slash = 1;
|
||||
}
|
||||
else if (last_slash && last_slash != url && last_slash[-1] == '/')
|
||||
else if (last_slash && last_slash != url && *(last_slash - 1) == '/')
|
||||
{
|
||||
/* example: http://host" */
|
||||
/* ^ */
|
||||
|
Loading…
Reference in New Issue
Block a user