diff --git a/coders/ftxt.c b/coders/ftxt.c index a1dff4c545..67a132e5d5 100644 --- a/coders/ftxt.c +++ b/coders/ftxt.c @@ -992,8 +992,8 @@ static MagickBooleanType WriteFTXTImage(const ImageInfo *image_info,Image *image FormatLocaleString(buffer,MaxTextExtent,"%s%a",sSep, (double) p[i]); else - FormatLocaleString(buffer,MaxTextExtent,"%s%.*Lg%s",sSep, - precision,p[i]*valMult,sSuff); + FormatLocaleString(buffer,MaxTextExtent,"%s%.*g%s",sSep, + precision,(double) (p[i]*valMult),sSuff); WriteBlobString(image,buffer); sSep[0]=chSep; }