From f306ae96268c50d3899b2e5614fdf738eaea224a Mon Sep 17 00:00:00 2001
From: hniksic <devnull@localhost>
Date: Wed, 8 Nov 2000 07:51:28 -0800
Subject: [PATCH] [svn] Changed last_slash[-1] to *(last_slash - 1).

---
 src/ChangeLog | 5 +++++
 src/url.c     | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index 526bc196..181720a9 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -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
diff --git a/src/url.c b/src/url.c
index 8be11f21..44e7280d 100644
--- 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"  */
 	      /*                      ^ */