From: Matthew Fernandez Date: Sat, 3 Oct 2020 19:18:32 +0000 (-0700) Subject: remove use of stack buffer in utf8ToLatin1 X-Git-Tag: 2.46.0~20^2^2~44^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ea824fbf73b89f0150ed042eb62e483c724c9360;p=graphviz remove use of stack buffer in utf8ToLatin1 For similar reasons to the prior commits. --- diff --git a/lib/common/utils.c b/lib/common/utils.c index 1a5df5bfb..826e69976 100644 --- a/lib/common/utils.c +++ b/lib/common/utils.c @@ -1597,11 +1597,10 @@ utf8ToLatin1 (char* s) { char* ns; agxbuf xb; - unsigned char buf[BUFSIZ]; unsigned char c; unsigned char outc; - agxbinit(&xb, BUFSIZ, buf); + agxbinit(&xb, 0, NULL); while ((c = *(unsigned char*)s++)) { if (c < 0x7F)