... and make it return the *right* value when it goes out of bounds.
authorMark Eichin <eichin@cygnus>
Tue, 14 Jul 1992 22:47:46 +0000 (22:47 +0000)
committerMark Eichin <eichin@cygnus>
Tue, 14 Jul 1992 22:47:46 +0000 (22:47 +0000)
gprof/lookup.c

index 1478faf6455b5da3b28e8cfb99fc4a9c505bcd9b..56ded0638cca938f8f1f942db96b3f276db1d6d1 100644 (file)
@@ -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