From: Matthew Fernandez Date: Fri, 17 Sep 2021 03:47:04 +0000 (-0700) Subject: gv2gxl _xml_string: use 'size_t' to track buffer size X-Git-Tag: 2.49.1~3^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=854165347c4156f04ec7b1cecaad37bdf8f6b2a2;p=graphviz gv2gxl _xml_string: use 'size_t' to track buffer size Squashes -Wconversion warnings. --- diff --git a/cmd/tools/gv2gxl.c b/cmd/tools/gv2gxl.c index 5f55146a3..6e359f2fc 100644 --- a/cmd/tools/gv2gxl.c +++ b/cmd/tools/gv2gxl.c @@ -11,7 +11,7 @@ #include "convert.h" #include -#include +#include #define SMALLBUF 128 @@ -183,9 +183,9 @@ static int xml_isentity(char *s) static char *_xml_string(char *s, int notURL) { static char *buf = NULL; - static int bufsize = 0; + static size_t bufsize = 0; char *p, *sub, *prev = NULL; - int len, pos = 0; + size_t len, pos = 0; if (!buf) { bufsize = 64;