1
0
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:
Daniel Stenberg 2003-08-08 17:56:47 +00:00
parent 12e78a082e
commit 514a8739b6

View File

@ -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] = ':';