From f5722c3dcfc1bd27bf82d85e0228065ff60c662a Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Tue, 2 Nov 2021 20:48:25 -0700 Subject: [PATCH] gvconfig: squash a -Wsign-conversion warning --- lib/gvc/gvconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index 78b8789ed..57eb956fe 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -605,7 +605,7 @@ void gvconfig(GVC_t * gvc, boolean rescan) return; } else { - config_text = gmalloc(config_st.st_size + 1); + config_text = gmalloc((size_t)config_st.st_size + 1); sz = fread(config_text, 1, config_st.st_size, f); if (sz == 0) { agerr(AGERR,"%s is zero sized, or other read error.\n", gvc->config_path); -- 2.40.0