Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

proper length calc

  • Loading branch information...
commit 5156e6842a41aa55c6268301995df5a1fa2c918a 1 parent a2f79ed
@mikejs authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.