From ea824fbf73b89f0150ed042eb62e483c724c9360 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 3 Oct 2020 12:18:32 -0700 Subject: [PATCH] remove use of stack buffer in utf8ToLatin1 For similar reasons to the prior commits. --- lib/common/utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.40.0