Commit 514a8739 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make sure the string is long enough

parent 12e78a08
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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] = ':';