diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-08 17:56:47 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-08 17:56:47 +0000 |
commit | 514a8739b669fa473560559a5cae225634bcc2f5 (patch) | |
tree | 468bc3ce2ae07d18fe79fcd588486c413ed12b77 | |
parent | 12e78a082eeb116c528572e6de51b7c4a0eb1bf1 (diff) |
make sure the string is long enough
-rw-r--r-- | lib/file.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/file.c b/lib/file.c index f4cd5f2f8..4e08c03bc 100644 --- a/lib/file.c +++ b/lib/file.c @@ -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] = ':'; |