diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-12-24 00:28:47 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-12-24 00:28:47 +0000 |
commit | 36cfebd82a9c74edc48f356bafc790a370286c78 (patch) | |
tree | d6c7d17cc5136f775f33356e676139011f9d6c6e | |
parent | 071431a70f0066a9330f8e59c74d04ab48796235 (diff) |
Fix an off-by-one error. Since `i' starts at 0, not 1, we don't have to
decrement it when reporting how many samples have been read so far.
-rw-r--r-- | usr.bin/gprof/gprof.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/gprof/gprof.c b/usr.bin/gprof/gprof.c index 7ca7aa720a7..1829f9087af 100644 --- a/usr.bin/gprof/gprof.c +++ b/usr.bin/gprof/gprof.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gprof.c,v 1.5 1999/06/16 15:23:53 deraadt Exp $ */ +/* $OpenBSD: gprof.c,v 1.6 2000/12/24 00:28:46 aaron Exp $ */ /* $NetBSD: gprof.c,v 1.8 1995/04/19 07:15:59 cgd Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)gprof.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: gprof.c,v 1.5 1999/06/16 15:23:53 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: gprof.c,v 1.6 2000/12/24 00:28:46 aaron Exp $"; #endif #endif /* not lint */ @@ -559,7 +559,7 @@ readsamples(pfile) if (i != nsamples) { fprintf(stderr, "%s: unexpected EOF after reading %d/%d samples\n", - whoami , --i , nsamples ); + whoami , i , nsamples ); done(); } } |