From: ellson Date: Sun, 22 May 2011 15:59:52 +0000 (+0000) Subject: apply graphviz-2.28.0-fix-format-errors.patch from Mandriva cooker. as found on... X-Git-Tag: LAST_LIBGRAPH~32^2~755 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1b3b90cd1afd712d1d7153377531f758797a7535;p=graphviz apply graphviz-2.28.0-fix-format-errors.patch from Mandriva cooker. as found on: http://sophie.zarb.org/sources/graphviz/ --- diff --git a/cmd/gvedit/main.cpp b/cmd/gvedit/main.cpp index 65e1bc9f7..4ca313aa8 100644 --- a/cmd/gvedit/main.cpp +++ b/cmd/gvedit/main.cpp @@ -65,7 +65,7 @@ static char *useString = "Usage: gvedit [-v?] \n\ static void usage(int v) { - printf(useString); + printf("%s",useString); exit(v); } diff --git a/cmd/tools/bcomps.c b/cmd/tools/bcomps.c index 1d31bc7c4..e3e41b43b 100644 --- a/cmd/tools/bcomps.c +++ b/cmd/tools/bcomps.c @@ -322,7 +322,7 @@ If no files are specified, stdin is used\n"; static void usage(int v) { - printf(useString); + printf("%s",useString); exit(v); } diff --git a/cmd/tools/ccomps.c b/cmd/tools/ccomps.c index d9f0b3b6b..3d74fe523 100644 --- a/cmd/tools/ccomps.c +++ b/cmd/tools/ccomps.c @@ -102,7 +102,7 @@ If no files are specified, stdin is used\n"; static void usage(int v) { - printf(useString); + printf("%s",useString); exit(v); } diff --git a/cmd/tools/dijkstra.c b/cmd/tools/dijkstra.c index 964efdf01..83b0609a9 100644 --- a/cmd/tools/dijkstra.c +++ b/cmd/tools/dijkstra.c @@ -241,7 +241,7 @@ If no files are specified, stdin is used\n"; static void usage(int v) { - printf(useString); + printf("%s",useString); exit(v); } diff --git a/cmd/tools/gc.c b/cmd/tools/gc.c index 6774fd5d6..42b165183 100644 --- a/cmd/tools/gc.c +++ b/cmd/tools/gc.c @@ -91,7 +91,7 @@ If no files are specified, stdin is used\n"; static void usage(int v) { - printf(useString); + printf("%s",useString); exit(v); } diff --git a/cmd/tools/gvcolor.c b/cmd/tools/gvcolor.c index cc2ea7ea6..830fdd8e3 100644 --- a/cmd/tools/gvcolor.c +++ b/cmd/tools/gvcolor.c @@ -91,7 +91,7 @@ If no files are specified, stdin is used\n"; static void usage(int v) { - printf(useString); + printf("%s",useString); exit(v); } diff --git a/cmd/tools/gvpack.c b/cmd/tools/gvpack.c index 043fa8af1..621233b18 100644 --- a/cmd/tools/gvpack.c +++ b/cmd/tools/gvpack.c @@ -113,7 +113,7 @@ If no files are specified, stdin is used\n"; static void usage(int v) { - printf(useString); + printf("%s",useString); exit(v); } diff --git a/cmd/tools/nop.c b/cmd/tools/nop.c index c95737325..1d37410f7 100644 --- a/cmd/tools/nop.c +++ b/cmd/tools/nop.c @@ -44,7 +44,7 @@ If no files are specified, stdin is used\n"; static void usage(int v) { - printf(useString); + printf("%s",useString); exit(v); } diff --git a/lib/ortho/ortho.c b/lib/ortho/ortho.c index b1c86a371..79b8c60e0 100644 --- a/lib/ortho/ortho.c +++ b/lib/ortho/ortho.c @@ -1520,7 +1520,7 @@ emitGraph (FILE* fp, maze* mp, int n_edges, route* route_list, epair_t es[]) absbb.LL.x = absbb.LL.y = MAXDOUBLE; absbb.UR.x = absbb.UR.y = -MAXDOUBLE; - fprintf (fp, prolog2); + fprintf (fp, "%s", prolog2); fprintf (fp, "%d %d translate\n", TRANS, TRANS); fputs ("0 0 1 setrgbcolor\n", fp);