On success, fgets always terminates the result.
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 4 Apr 2017 19:27:31 +0000 (21:27 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 4 Apr 2017 19:27:31 +0000 (21:27 +0200)
commit35295f190207d9001fdcf30fe76f11434691b259
tree59c7b103bb8200dda5fade062de850929714aabc
parent1289bdb742adab134cf4874447b66ab386deb724
On success, fgets always terminates the result.

If fgets succeeds, then the resulting char array is always
terminated by a '\0'. No need to keep extra space, therefore
sizeof(buf) is the correct argument.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
slstatus.c