diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-11-30 21:48:43 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-11-30 22:11:46 +0000 |
commit | 2f5c913d4a21c60799290d6efe769d188c57b906 (patch) | |
tree | ff1b7046ef4c1ccb19e151560d96b69b1515261e /src/cpptoml | |
parent | 95157b4e664dc6f4dece15beac6fa1143086323e (diff) |
Fix #5299
No matter what, we need to resize the buffer to not have any scratch
space after we do the `read`. In the end of file case, `got` will be 0
from it's initial value.
Before, we forgot to resize in the EOF case with the break. Yes, we know
we didn't recieve any data in that case, but we still have the scatch
space to undo.
Co-Authored-By: Will Fancher <Will.Fancher@Obsidian.Systems>
Diffstat (limited to 'src/cpptoml')
0 files changed, 0 insertions, 0 deletions