diff options
author | Mark Eichin <eichin@cygnus> | 1992-07-14 22:47:46 +0000 |
---|---|---|
committer | Mark Eichin <eichin@cygnus> | 1992-07-14 22:47:46 +0000 |
commit | f7dfc7e2a6fd6cfd4a81f36855a79854249b97ae (patch) | |
tree | ed3cc4267eb089d6135819b6ee6cbe0a11b400cc /gprof/lookup.c | |
parent | b974fbff9ca9030dd18bbdf71da8d01a6169b0e9 (diff) | |
download | gdb-f7dfc7e2a6fd6cfd4a81f36855a79854249b97ae.zip gdb-f7dfc7e2a6fd6cfd4a81f36855a79854249b97ae.tar.gz gdb-f7dfc7e2a6fd6cfd4a81f36855a79854249b97ae.tar.bz2 |
... and make it return the *right* value when it goes out of bounds.
Diffstat (limited to 'gprof/lookup.c')
-rw-r--r-- | gprof/lookup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/lookup.c b/gprof/lookup.c index 1478faf..56ded06 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 |