Xinqi Bao's Git
projects
/
slstatus.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
|
inline
| side by side (from:
35295f1
)
On success, fgets always terminates the result.
author
Tobias Stoeckmann <
[email protected]
>
Tue, 4 Apr 2017 19:27:31 +0000
(21:27 +0200)
committer
Tobias Stoeckmann <
[email protected]
>
Tue, 4 Apr 2017 19:27:31 +0000
(21:27 +0200)
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 <
[email protected]
>
No differences found