aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 65c899934..6fa8f6334 100644
--- a/lib/transfer.c
+++ b/lib/transfer.c
@@ -1827,7 +1827,7 @@ CURLcode Curl_follow(struct SessionHandle *data,
/* First we need to find out if there's a ?-letter in the URL,
and cut it and the right-side of that off */
- pathsep = strrchr(protsep, '?');
+ pathsep = strchr(protsep, '?');
if(pathsep)
*pathsep=0;