]> granicus.if.org Git - imagemagick/commitdiff
revert https://github.com/ImageMagick/ImageMagick/commit/d2e09ba73a300e725e3d7bea817d...
authorCristy <mikayla-grace@urban-warrior.org>
Fri, 8 Feb 2019 00:39:09 +0000 (19:39 -0500)
committerCristy <mikayla-grace@urban-warrior.org>
Fri, 8 Feb 2019 00:39:09 +0000 (19:39 -0500)
coders/png.c

index cb6150e62543f85d2d00bb07962fb8f65ce593dd..3678ed9c0341091e1354f1cc70e0042fa753cd5a 100644 (file)
@@ -3955,8 +3955,11 @@ static Image *ReadOnePNGImage(MngInfo *mng_info,
                 char
                   key[MagickPathExtent];
 
-                (void) FormatLocaleString(key,MagickPathExtent,"png:%s",
+                (void) FormatLocaleString(key,MagickPathExtent,"%s",
                   text[i].key);
+                if (LocaleCompare(key,"version") != (char *) NULL)
+                  (void) FormatLocaleString(key,MagickPathExtent,"png:%s",
+                    text[i].key);
                 (void) SetImageProperty(image,key,value,exception);
               }