]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Thu, 2 Sep 2010 15:48:08 +0000 (15:48 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Thu, 2 Sep 2010 15:48:08 +0000 (15:48 +0000)
coders/ps.c
coders/ttf.c

index 6e11c933ccd6d42670238adf045e6bbcf0d28ec4..82eeac815f53c9dd48ed37e9916ea4ffbce480df 100644 (file)
@@ -522,9 +522,9 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
       (void) sscanf(command,LanguageLevel " %lu",&language_level);
     if (LocaleNCompare(Pages,command,strlen(Pages)) == 0)
       (void) sscanf(command,Pages " %lu",&pages);
-    if (LocaleNCompare(ImageData,command,strlen(Pages)) == 0)
+    if (LocaleNCompare(ImageData,command,strlen(ImageData)) == 0)
       (void) sscanf(command,ImageData " %lu %lu",&columns,&rows);
-    if (LocaleNCompare(ICCProfile,command,strlen(PhotoshopProfile)) == 0)
+    if (LocaleNCompare(ICCProfile,command,strlen(ICCProfile)) == 0)
       {
         unsigned char
           *datum;
index 549795efe9da962ae993de9ab29d59e0d6528907..d2e8b4c8de52021f7916628f1ce70616ba054ecf 100644 (file)
@@ -97,7 +97,7 @@ static MagickBooleanType IsPFA(const unsigned char *magick,const size_t length)
 {
   if (length < 14)
     return(MagickFalse);
-  if (LocaleNCompare((char *) magick,"%!PS-AdobeFont-1.0",14) == 0)
+  if (LocaleNCompare((char *) magick,"%!PS-AdobeFont",14) == 0)
     return(MagickTrue);
   return(MagickFalse);
 }