From: Matthew Fernandez Date: Fri, 10 Dec 2021 01:05:22 +0000 (-0800) Subject: mingle: fix mismatched format string to 'agerr' X-Git-Tag: 3.0.0~125^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e6451ead5af8d75ee7357c397b79e819d739d2bf;p=graphviz mingle: fix mismatched format string to 'agerr' 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`. --- diff --git a/CHANGELOG.md b/CHANGELOG.md index 513b42064..95d369af9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/cmd/mingle/minglemain.c b/cmd/mingle/minglemain.c index 95140e6dd..75ce86005 100644 --- a/cmd/mingle/minglemain.c +++ b/cmd/mingle/minglemain.c @@ -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);