mirror of
https://github.com/curl/curl.git
synced 2026-06-01 23:04:15 +03:00
make sure the string is long enough
This commit is contained in:
parent
12e78a082e
commit
514a8739b6
1 changed files with 2 additions and 1 deletions
|
|
@ -125,7 +125,8 @@ CURLcode Curl_file_connect(struct connectdata *conn)
|
|||
with a drive letter.
|
||||
*/
|
||||
actual_path = real_path;
|
||||
if (*actual_path == '/' &&
|
||||
if ((actual_path[0] == '/') &&
|
||||
actual_path[1] &&
|
||||
(actual_path[2] == ':' || actual_path[2] == '|'))
|
||||
{
|
||||
actual_path[2] = ':';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue