Skip to content

Commit b8ccdfa

Browse files
vbabaninstIncMale
andauthored
Update bson/src/main/org/bson/io/ByteBufferBsonInput.java
Co-authored-by: Valentin Kovalenko <[email protected]>
1 parent 55ba0b1 commit b8ccdfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/src/main/org/bson/io/ByteBufferBsonInput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void skipCString() {
188188
* <a href="https://en.wikipedia.org/wiki/SWAR">
189189
*/
190190
private int computeCStringLength(final int prevPos) {
191-
int pos = buffer.position();
191+
int pos = prevPos;
192192
int limit = buffer.limit();
193193

194194
int chunks = (limit - pos) >>> 3;

0 commit comments

Comments
 (0)