Fix offset bug in qreply in cs
authorKevin Klues <klueska@cs.berkeley.edu>
Wed, 2 Apr 2014 19:37:29 +0000 (12:37 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Wed, 2 Apr 2014 19:37:29 +0000 (12:37 -0700)
tests/cs.c

index 0ca3030..1641c32 100644 (file)
@@ -1674,7 +1674,7 @@ qreply(Mfile *mf, struct ndbtuple *t)
                        len = 0;
                else {
                        len -= amt;
-                       cur += len;
+                       cur += amt;
                }
 
                if(nt->line != nt->entry){
@@ -1688,7 +1688,7 @@ qreply(Mfile *mf, struct ndbtuple *t)
                                len = 0;
                        else {
                                len -= amt;
-                               cur += len;
+                               cur += amt;
                        }
                }