about summary refs log tree commit diff stats
path: root/src/LYGetFile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/LYGetFile.c')
-rw-r--r--src/LYGetFile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/LYGetFile.c b/src/LYGetFile.c
index 5ea77c2e..64109c8a 100644
--- a/src/LYGetFile.c
+++ b/src/LYGetFile.c
@@ -354,7 +354,8 @@ Try_Redirected_URL:
 			 *  Bug puts slash on end if none is in the string.
 			 */
 			char *last_slash = strrchr(doc->address,'/');
-			if (last_slash-doc->address==strlen(doc->address)-1)
+			if (last_slash - doc->address
+			 == (int)strlen(doc->address) - 1)
 			    doc->address[strlen(doc->address)-1] = '\0';
 
 			p = doc->address;