From: Cristy Date: Thu, 7 Mar 2019 00:31:54 +0000 (-0500) Subject: https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=35591 X-Git-Tag: 7.0.8-33~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=294aa8e4c4b4f128da909db1906167031b87920b;p=imagemagick https://imagemagick.org/discourse-server/viewtopic.php?f=3&t=35591 --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 57416a195..a7df289f0 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2278,6 +2278,17 @@ static MagickBooleanType CheckPrimitiveExtent(MVGInfo *mvg_info, return(MagickFalse); } +MagickExport int MVGMacroCompare(const void *target,const void *source) +{ + const char + *p, + *q; + + p=(const char *) target; + q=(const char *) source; + return(strcmp(p,q)); +} + static SplayTreeInfo *GetMVGMacros(const char *primitive) { char @@ -2298,7 +2309,7 @@ static SplayTreeInfo *GetMVGMacros(const char *primitive) */ if (primitive == (const char *) NULL) return((SplayTreeInfo *) NULL); - macros=NewSplayTree(CompareSplayTreeString,RelinquishMagickMemory, + macros=NewSplayTree(MVGMacroCompare,RelinquishMagickMemory, RelinquishMagickMemory); macro=AcquireString(primitive); token=AcquireString(primitive);