]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 19 Mar 2017 22:16:14 +0000 (18:16 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sun, 19 Mar 2017 22:16:14 +0000 (18:16 -0400)
MagickCore/utility.c

index 06c345b803d51de286a1a967a60b3d35e8b9b92f..d5f9f0d8ed70e4c18092f6af940adf21ae40891e 100644 (file)
@@ -1233,7 +1233,7 @@ MagickExport void GetPathComponent(const char *path,PathType type,
         if (*p == '\0')
           break;
       }
-    if ((*p == ':') && (IsPathDirectory(path) < 0) &&
+    if ((p != component) && (*p == ':') && (IsPathDirectory(path) < 0) &&
         (IsPathAccessible(path) == MagickFalse))
       {
         /*