Merging with master
authorHamed Gorjiara <hgorjiar@uci.edu>
Thu, 2 Nov 2017 00:58:49 +0000 (17:58 -0700)
committerHamed Gorjiara <hgorjiar@uci.edu>
Thu, 2 Nov 2017 00:58:49 +0000 (17:58 -0700)
1  2 
src/Serialize/serializer.cc

@@@ -61,8 -65,8 +65,9 @@@ void Serializer::mywrite(const void *__
  
                        if (spacefree < __n) {
                                flushBuffer();
+                               __n -= datatowrite;
                                towrite += datatowrite;
 +                                __n-=datatowrite;
                        } else if (spacefree == __n) {
                                flushBuffer();
                                return;