From 92a0a8b69faf7882459c1ac6c9186e1c47ef0a91 Mon Sep 17 00:00:00 2001 From: rsc Date: Wed, 21 Apr 2004 07:38:03 +0000 Subject: the lastbug fix? --- src/cmd/mk/graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/mk/graph.c') diff --git a/src/cmd/mk/graph.c b/src/cmd/mk/graph.c index 58529259..fdb02881 100644 --- a/src/cmd/mk/graph.c +++ b/src/cmd/mk/graph.c @@ -180,7 +180,7 @@ dumpn(char *s, Node *n) char buf[1024]; Arc *a; - sprint(buf, "%s ", (*s == ' ')? s:""); + snprint(buf, sizeof buf, "%s ", (*s == ' ')? s:""); Bprint(&bout, "%s%s@%ld: time=%ld flags=0x%x next=%ld\n", s, n->name, n, n->time, n->flags, n->next); for(a = n->prereqs; a; a = a->next) -- cgit v1.2.3