Fixed out of boundary write on long lines.
Fixed out of boundary write on long lines.

The terminating nul character ('\0') could be written outside the boundary of
the buffer which is used to read characters. If "sizeof(buffer)" characters
are read, the resulting value must not be used as index, because that's an off
by one.

Read sizeof(buffer)-1 bytes instead.

Signed-off-by: Tobias Stoeckmann <059b8b880f8441509ec8a65b50b4c6ae74ebea76@stoeckmann.org>

drkhsh/slstatus,R41z/slstatus,drkh5h/slstatus