From: cristy Date: Fri, 12 Mar 2010 14:08:17 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~9815 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dfbe6ca0668f1e435453f292bbf55831c7e69e35;p=imagemagick --- diff --git a/coders/psd.c b/coders/psd.c index 1bb53b4cf..679ea7201 100644 --- a/coders/psd.c +++ b/coders/psd.c @@ -2137,8 +2137,8 @@ compute_layer_info: layer_info_size += 16; else { - size_t length=strlen(theAttr)+(4-(length % 4))+1; - layer_info_size += 8+length; + size_t length=strlen(theAttr); + layer_info_size += 8+length+(4-(length % 4))+1; } layer_count++; tmp_image = GetNextImageInList(tmp_image); @@ -2241,8 +2241,8 @@ compute_layer_info: layer_count++ ); WritePascalString( image, (char*)layer_name, 4 ); } else { - size_t length=strlen(theAttr)+(4-(length % 4))+1; - (void) WriteBlobMSBLong(image, length+8); + size_t length=strlen(theAttr); + (void) WriteBlobMSBLong(image, length+(4-(length % 4))+1+8); (void) WriteBlobMSBLong(image, 0); (void) WriteBlobMSBLong(image, 0); WritePascalString( image, theAttr, 4 ); diff --git a/wand/convert.c b/wand/convert.c index 3f1d4e2ff..d803f1982 100644 --- a/wand/convert.c +++ b/wand/convert.c @@ -1042,6 +1042,7 @@ WandExport MagickBooleanType ConvertImageCommand(ImageInfo *image_info, if (i == (long) (argc-1)) ThrowConvertException(OptionError,"MissingArgument",option); #if 1 + (void) token; if (IsGeometry(argv[i]) == MagickFalse) ThrowConvertInvalidArgumentException(option,argv[i]); #else diff --git a/wand/mogrify.c b/wand/mogrify.c index 10a8f1cf7..84bc5eea4 100644 --- a/wand/mogrify.c +++ b/wand/mogrify.c @@ -4534,6 +4534,7 @@ WandExport MagickBooleanType MogrifyImageCommand(ImageInfo *image_info, if (i == (long) argc) ThrowMogrifyException(OptionError,"MissingArgument",option); #if 1 + (void) token; if (IsGeometry(argv[i]) == MagickFalse) ThrowMogrifyInvalidArgumentException(option,argv[i]); #else