1
0
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:
hniksic 2000-11-08 07:51:28 -08:00
parent b72b6cf387
commit f306ae9626
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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" */
/* ^ */