Paul Dagnelie b2f3709c3e
Don't erase final byte of envblock
When we copy the envblock's contents out, we currently treat it as 
a normal C string. However, this functionality is supposed to more
closely emulate interacting with a file. As a consequence, we were 
incorrectly truncating the contents of the envblock by replacing 
the final byte of the buffer with a null character.

Reviewed-by: Pavel Zakharov <pavel.zakharov@delphix.com>
Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes #10405
2020-06-08 08:58:13 -07:00
..
2019-10-02 10:39:48 -07:00
2020-02-10 12:59:50 -08:00
2020-04-14 11:36:28 -07:00
2019-10-02 10:39:48 -07:00
2019-10-02 10:39:48 -07:00
2020-04-14 11:36:28 -07:00
2020-06-08 08:58:13 -07:00
2020-04-14 11:36:28 -07:00
2020-04-14 11:36:28 -07:00