]> git.lizzy.rs Git - plan9front.git/commit
rio: fix bug causing short reads of wctl files
authorAlex Musolino <alex@musolino.id.au>
Tue, 19 Nov 2019 02:08:13 +0000 (12:38 +1030)
committerAlex Musolino <alex@musolino.id.au>
Tue, 19 Nov 2019 02:08:13 +0000 (12:38 +1030)
commit4d4107b38547c7f9f135cc22d3a29fcbad4a8c34
tree190cd80be55d2de59fc66bc4c738c479c0f81b81
parentf32148b290be11d46d3c1e419285f46c7fbb308b
rio: fix bug causing short reads of wctl files

Previously, reads of wctl files would return one byte less than
requested as the returned string must be null terminated.  Now we pass
the actual size of the allocated buffer to the handler, which is large
enough to accommodate a trailing partial rune and terminating null
byte.
sys/src/cmd/rio/xfid.c