]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Fri, 20 May 2011 15:35:37 +0000 (15:35 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Fri, 20 May 2011 15:35:37 +0000 (15:35 +0000)
magick/deprecate.c

index 8db76df1efcced81a7deef8e58a53a0997f13698..db8323d08493f962692cd686ea886b7d45a4dc54 100644 (file)
@@ -1980,9 +1980,8 @@ MagickExport Image *FlattenImages(Image *image,ExceptionInfo *exception)
 %      arguments.
 %
 */
-
-MagickExport MagickBooleanType FormatImageAttributeList(Image *image,
-  const char *key,const char *format,va_list operands)
+MagickExport MagickBooleanType FormatImageAttribute(Image *image,
+  const char *key,const char *format,...)
 {
   char
     value[MaxTextExtent];
@@ -1990,29 +1989,14 @@ MagickExport MagickBooleanType FormatImageAttributeList(Image *image,
   int
     n;
 
-#if defined(MAGICKCORE_HAVE_VSNPRINTF)
-  n=vsnprintf(value,MaxTextExtent,format,operands);
-#else
-  n=vsprintf(value,format,operands);
-#endif
-  if (n < 0)
-    value[MaxTextExtent-1]='\0';
-  return(SetImageProperty(image,key,value));
-}
-
-MagickExport MagickBooleanType FormatImageAttribute(Image *image,
-  const char *key,const char *format,...)
-{
-  MagickBooleanType
-    status;
-
   va_list
     operands;
 
   va_start(operands,format);
-  status=FormatImagePropertyList(image,key,format,operands);
+  n=FormatLocaleStringList(value,MaxTextExtent,format,operands);
+  (void) n;
   va_end(operands);
-  return(status);
+  return(SetImageProperty(image,key,value));
 }
 \f
 /*