From 514a8739b669fa473560559a5cae225634bcc2f5 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 8 Aug 2003 17:56:47 +0000 Subject: [PATCH] make sure the string is long enough --- lib/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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] = ':';