From 6e617e6a6f1ef45e5c007b2a901ef361617e8aab Mon Sep 17 00:00:00 2001 From: cristy Date: Sat, 29 Sep 2012 14:12:23 +0000 Subject: [PATCH] --- MagickCore/property.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/MagickCore/property.c b/MagickCore/property.c index dc083e517..507806d5d 100644 --- a/MagickCore/property.c +++ b/MagickCore/property.c @@ -1095,7 +1095,7 @@ static MagickBooleanType GetEXIFProperty(const Image *image, { 0x1001c, "exif:GPSAreaInformation" }, { 0x1001d, "exif:GPSDateStamp" }, { 0x1001e, "exif:GPSDifferential" }, - { 0x0000, NULL} + { 0x00000, (const char *) NULL } }; const StringInfo @@ -1425,12 +1425,14 @@ static MagickBooleanType GetEXIFProperty(const Image *image, if (value != (char *) NULL) { char - key[MaxTextExtent]; + *key; register const char *p; - (void) CopyMagickString(key,property,MaxTextExtent); + key=AcquireString(property); + if (level == 2) + (void) SubstituteString(&key,"exif:","exif:thumbnail:"); switch (all) { case 1: @@ -1476,6 +1478,7 @@ static MagickBooleanType GetEXIFProperty(const Image *image, if (p == (const char *) NULL) (void) SetImageProperty((Image *) image,key,value,exception); value=DestroyString(value); + key=DestroyString(key); status=MagickTrue; } } -- 2.40.0