Correct the directory sentinal
diff --git a/MagickCore/display.c b/MagickCore/display.c
index d60fa94..50c39b7 100644
--- a/MagickCore/display.c
+++ b/MagickCore/display.c
@@ -13179,7 +13179,7 @@
   if (id < 0)
     return((Image *) NULL);
   q=p;
-  while ((*q != '\n') && (*q != '\0'))
+  while ((*q != '\xff') && (*q != '\0'))
     q++;
   (void) CopyMagickString(filename,p,(size_t) (q-p+1));
   /*