]> granicus.if.org Git - graphviz/commitdiff
mingle: fix mismatched format string to 'agerr'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 10 Dec 2021 01:05:22 +0000 (17:05 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 15 Dec 2021 01:04:32 +0000 (17:04 -0800)
Based on line 395 of this same file, it is clear this is what this code was
intended to look like. It is unclear to me why this was not caught by the GNU
`printf` annotations on `agerr`.

CHANGELOG.md
cmd/mingle/minglemain.c

index 513b420645bfaddc2ac706a2a4394d9303876965..95d369af9b256110aa309489b1544adb2a2bd873 100644 (file)
@@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
 
 - fix detection of unavailable output format
 - SVG layout doesn't always respect requested size #1855
+- mismatched format string in `mingle`
 
 ## [2.50.0] – 2021-12-04
 
index 95140e6ddf052f8cb673067535103de3f09a8a81..75ce8600575e818453d583c5c5ef638a98c799ef 100644 (file)
@@ -385,7 +385,8 @@ bundle (Agraph_t* g, opts_t* opts)
        int rv = 0;
 
        if (checkG(g)) {
-               agerr (AGERR, "Graph %s (%s) contains loops or multiedges\n");
+               agerr(AGERR, "Graph %s (%s) contains loops or multiedges\n", agnameof(g),
+                     fname);
                return 1;
        }
     initDotIO(g);