Diff
Not logged in

Differences From:

File src/delta.c part of check-in [dbda8d6ce9] - Initial check-in of m1 sources. by drh on 2007-07-21 14:10:57. [view]

To:

File src/delta.c part of check-in [73bddaebb9] - The delta compress on xfer is working better now, but still needs work. by drh on 2007-08-09 17:42:59. [view]

@@ -334,9 +334,9 @@
   /* Begin scanning the target file and generating copy commands and
   ** literal sections of the delta.
   */
   base = 0;    /* We have already generated everything before zOut[base] */
-  while( base<lenOut-NHASH ){
+  while( base+NHASH<lenOut ){
     int iSrc, iBlock;
     unsigned int bestCnt, bestOfst, bestLitsz;
     hash_init(&h, &zOut[base]);
     i = 0;     /* Trying to match a landmark against zOut[base+i] */