Permalink
Browse files

proper length calc

  • Loading branch information...
1 parent a2f79ed commit 5156e6842a41aa55c6268301995df5a1fa2c918a @mikejs committed Sep 28, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 local_gridfile.cpp
View
2 local_gridfile.cpp
@@ -37,7 +37,7 @@ int LocalGridFile::write(const char *buf, size_t nbyte, off_t offset)
chunk_num++;
}
- _length += written;
+ _length = max(_length, (int)offset + written);
_dirty = true;
return written;

0 comments on commit 5156e68

Please sign in to comment.