Xinqi Bao's Git
projects
/
slstatus.git
/ commitdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(from:
c83b388
)
Properly handle *snprintf() errors
author
Laslo Hunhold <
[email protected]
>
Thu, 17 May 2018 21:23:28 +0000
(23:23 +0200)
committer
Aaron Marcher <
[email protected]
>
Thu, 17 May 2018 21:26:56 +0000
(23:26 +0200)
Posix guarantees that the resulting string is null-terminated, even if
we have an overflow. Instead of doing what has already been done,
properly warn when there has been an error or overflow, so the user can
do something about it.
No differences found