From: Matthew Fernandez Date: Sat, 24 Apr 2021 04:14:54 +0000 (-0700) Subject: remove useless snprintf X-Git-Tag: 2.47.2~13^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a4ab2529d5326a605a21c171fa95462d45ce8a3;p=graphviz remove useless snprintf Unclear what the purpose of this was when the content of buf is overwritten later before being read. --- diff --git a/lib/sparse/DotIO.c b/lib/sparse/DotIO.c index 2c1995f4b..2d6dc86e1 100644 --- a/lib/sparse/DotIO.c +++ b/lib/sparse/DotIO.c @@ -437,7 +437,6 @@ makeDotGraph (SparseMatrix A, char *name, int dim, real *x, int with_color, int } else { g = agopen ("G", Agdirected, 0); } - snprintf(buf, sizeof(buf), "%f", 1.0); label_string = strcpy(label_string, name); label_string = strcat(label_string, ". ");