Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Actually fixes the off by one error#74

Merged
willemneal merged 2 commits intomasterfrom
off_by_one_error
May 15, 2019
Merged

Actually fixes the off by one error#74
willemneal merged 2 commits intomasterfrom
off_by_one_error

Conversation

@willemneal
Copy link
Contributor

@willemneal willemneal commented May 15, 2019

String.lengthUTF8 included the NUL character at the end. This meant that it was also written to the file and the offset was updated one too fare with reads.

When reading a string new offset included NUL.
Writing also included a null, which it shouldn't.
@willemneal willemneal merged commit a454ec8 into master May 15, 2019
@rawsoy rawsoy mentioned this pull request May 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant