From: Mark Eichin Date: Tue, 14 Jul 1992 22:47:46 +0000 (+0000) Subject: ... and make it return the *right* value when it goes out of bounds. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f7dfc7e2a6fd6cfd4a81f36855a79854249b97ae;p=binutils-gdb.git ... and make it return the *right* value when it goes out of bounds. --- 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