(Pre-existing) The phrasing could be read as saying we've stored the returned number of bytes in the buffer and haven't written a '\0' terminator after them, rather than that the return is the number of bytes stored in the buffer prior to the '\0' that has also been stored there.