aboutsummaryrefslogtreecommitdiff
path: root/gprof/lookup.c
diff options
context:
space:
mode:
authorMark Eichin <eichin@cygnus>1992-07-14 22:47:46 +0000
committerMark Eichin <eichin@cygnus>1992-07-14 22:47:46 +0000
commitf7dfc7e2a6fd6cfd4a81f36855a79854249b97ae (patch)
treeed3cc4267eb089d6135819b6ee6cbe0a11b400cc /gprof/lookup.c
parentb974fbff9ca9030dd18bbdf71da8d01a6169b0e9 (diff)
downloadgdb-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.c2
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