diff --git a/lib/urlapi.c b/lib/urlapi.c index e0c547605a1a9e..cd423c335d88f4 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -1109,6 +1109,7 @@ static CURLUcode parseurl(const char *url, CURLU *u, unsigned int flags) if('/' == path[0] && STARTS_WITH_URL_DRIVE_PREFIX(&path[1])) { /* This cannot be done with strcpy, as the memory chunks overlap! */ path++; + pathlen--; } #endif