K 10 svn:author V 6 brooks K 8 svn:date V 27 2017-04-24T22:44:59.995470Z K 7 svn:log V 201 MFC r316768: Fix an out-of-bounds write when a zero-length buffer is passed. Found with ttyname_test and CHERI bounds checking. Reviewed by: emaste Obtained from: CheriBSD Sponsored by: DARPA, AFRL END