From f7dfc7e2a6fd6cfd4a81f36855a79854249b97ae Mon Sep 17 00:00:00 2001 From: Mark Eichin Date: Tue, 14 Jul 1992 22:47:46 +0000 Subject: [PATCH] ... and make it return the *right* value when it goes out of bounds. --- gprof/lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gprof/lookup.c b/gprof/lookup.c index 1478faf6455..56ded0638cc 100644 --- a/gprof/lookup.c +++ b/gprof/lookup.c @@ -69,7 +69,7 @@ nllookup( address ) printf("[nllookup] %d (%d) probes, fall off\n", probes, nname-1); } # endif - return &nl[middle]; + return &nl[middle+1]; } fprintf( stderr , "[nllookup] binary search fails???\n" ); #ifdef DEBUG -- 2.30.2