From fafa622a5bdf71adfbb4334541c3b65f29c89ca9 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Sun, 12 Jan 2020 15:05:40 -0500 Subject: all: fix or silence various gcc warnings As usual, gcc finds some real problems but also reports a ton of noise. Fix the problems and quiet the noise. --- src/cmd/grap/coord.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/grap') diff --git a/src/cmd/grap/coord.c b/src/cmd/grap/coord.c index 72f0fc3a..ea640458 100644 --- a/src/cmd/grap/coord.c +++ b/src/cmd/grap/coord.c @@ -35,7 +35,7 @@ void coordlog(int n) /* remember log scaling */ void coord(Obj *p) /* set coord range */ { - static char buf[10]; + static char buf[20]; ncoord++; if (ncoord > 1 && strcmp(p->name, dflt_coord) == 0) { -- cgit v1.2.3