Re: SVG to PNG
Bob Friesenhahn <[email protected]> Sun, 22 Nov 2020 08:27:07 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.help |
|---|---|
| Message-ID | <[email protected]> |
On Fri, 20 Nov 2020, Pro Turm wrote:
>
> The above means that path_map iterations would try to open a file with
> a test_path contains the LibConfigPath with additionally what's
> remaining from the ShareConfigPath...
>
> The fix is to initialize the test_path in the loop (i.e. for each
> iteration):char test_path[MaxTextExtent] = "";
I don't see how this changes anything since the first statement after
that initialization would be:
FormatString(test_path,"%.1024s%.256s",
(const char *)MagickMapDereferenceIterator(path_map_iterator,0),
filename);
which is entirely over-writing the content of test_path.
I am not understanding the bug given the description provided.
Bob
--
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer, http://www.GraphicsMagick.org/
Public Key, http://www.simplesystems.org/users/bfriesen/public-key.txt