mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
make sure the string is long enough
This commit is contained in:
parent
12e78a082e
commit
514a8739b6
@ -125,7 +125,8 @@ CURLcode Curl_file_connect(struct connectdata *conn)
|
|||||||
with a drive letter.
|
with a drive letter.
|
||||||
*/
|
*/
|
||||||
actual_path = real_path;
|
actual_path = real_path;
|
||||||
if (*actual_path == '/' &&
|
if ((actual_path[0] == '/') &&
|
||||||
|
actual_path[1] &&
|
||||||
(actual_path[2] == ':' || actual_path[2] == '|'))
|
(actual_path[2] == ':' || actual_path[2] == '|'))
|
||||||
{
|
{
|
||||||
actual_path[2] = ':';
|
actual_path[2] = ':';
|
||||||
|
Loading…
Reference in New Issue
Block a user