]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
*** empty log message ***
authorAndrew Tridgell <tridge@samba.org>
Wed, 3 Jul 1996 08:18:11 +0000 (08:18 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 3 Jul 1996 08:18:11 +0000 (08:18 +0000)
checksum.c

index 2344b632e85e95445c519c3ebb22189fc3fcbcbf..1fd1c55c7978bd0e8c0af76276f16b143f5f70e3 100644 (file)
@@ -152,6 +152,12 @@ void sum_init(void)
 void sum_update(char *p,int len)
 {
   int i;
+  if (len + sumresidue < CSUM_CHUNK) {
+    bcopy(p,sumrbuf+sumresidue,len);
+    sumresidue += len;
+    return;
+  }
+
   if (sumresidue) {
     i = MIN(CSUM_CHUNK-sumresidue,len);
     bcopy(p,sumrbuf+sumresidue,i);