]> granicus.if.org Git - graphviz/commitdiff
gvconfig: squash a -Wsign-conversion warning
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 3 Nov 2021 03:48:25 +0000 (20:48 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 9 Nov 2021 15:10:39 +0000 (07:10 -0800)
lib/gvc/gvconfig.c

index 78b8789ed6a7bbeb43df0d5d41b0e01f08ed51fe..57eb956fe36663cafe8c5a579dca783ee21942f7 100644 (file)
@@ -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);