]> sjero.net Git - wget/commitdiff
[svn] Changed last_slash[-1] to *(last_slash - 1).
authorhniksic <devnull@localhost>
Wed, 8 Nov 2000 15:51:28 +0000 (07:51 -0800)
committerhniksic <devnull@localhost>
Wed, 8 Nov 2000 15:51:28 +0000 (07:51 -0800)
src/ChangeLog
src/url.c

index 526bc19614c0ab78584fe9ad14a1fefc2ca59377..181720a96cbdbb0e307de0ec5f65ef4047913d9f 100644 (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
index 8be11f21bfbe805253e2e2233e861be12b1d4705..44e7280d0994d91dd34be34aae66d3f15fefc689 100644 (file)
--- a/src/url.c
+++ b/src/url.c
@@ -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"  */
              /*                      ^ */