diff options
author | Reimer Behrends <behrends@gmail.com> | 2014-05-24 07:04:34 +0200 |
---|---|---|
committer | Reimer Behrends <behrends@gmail.com> | 2014-05-26 14:29:55 +0200 |
commit | ce773b70a7725cecec14ed4dcbdeeac4c7c0db1c (patch) | |
tree | fe198f546aef88c8a28758da9dc73a62b7d4dae3 /compiler/semstmts.nim | |
parent | 912fbb9893fd57c124aff96a18b4f2299dc72758 (diff) | |
download | Nim-ce773b70a7725cecec14ed4dcbdeeac4c7c0db1c.tar.gz |
Fixed readAllBuffer() to avoid adding garbage bytes at end.
The function readAllBuffer() always returned a string that was a multiple of the BufSize in length, regardless of how many bytes were actually read, padding the result with garbage bytes on the last chunk. This fix properly trims the last chunk to its actual size.
Diffstat (limited to 'compiler/semstmts.nim')
0 files changed, 0 insertions, 0 deletions