register const char
*p;
+ size_t
+ length;
+
canonical=MagickFalse;
(void) CopyMagickString(filename,format,MaxTextExtent);
for (p=strchr(format,'%'); p != (char *) NULL; p=strchr(p+1,'%'))
q--;
c=(*q);
*q='\0';
- (void) CopyMagickString(filename+(p-format),value,(size_t)
- (MaxTextExtent-(p-format)));
+ (void) CopyMagickString(filename+(p-format-length),value,(size_t)
+ (MaxTextExtent-(p-format-length)));
+ length+=strlen(pattern)-1;
*q=c;
(void) ConcatenateMagickString(filename,r+1,MaxTextExtent);
canonical=MagickTrue;
%
% The format of the GetMagickProperty method is:
%
-% const char *GetMagickProperty(const ImageInfo *image_info,
-% Image *image,const char *key)
+% const char *GetMagickProperty(const ImageInfo *image_info,Image *image,
+% const char *key)
%
% A description of each parameter follows:
%
if (LocaleNCompare("page",property,4) == 0)
{
(void) FormatLocaleString(value,MaxTextExtent,"%.20g",(double)
- GetImageIndexInList(image)+1);
+ GetImageIndexInList(image)+1);
break;
}
break;
Number of images in the list.
*/
q+=FormatLocaleString(q,extent,"%.20g",(double)
- GetImageListLength(image));
+ GetImageListLength(image));
break;
}
case 'o':