diff options
author | Dirk Mueller <dmueller@suse.com> | 2014-02-03 18:50:04 +0100 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2014-02-04 21:36:12 +0900 |
commit | fe2c38cc0fc32573726797e6496c3056d10949c5 (patch) | |
tree | d416f62d34d2098e79d699949fd93f7011842626 /purgatory/arch | |
parent | d58ad564852c1dea9cbff3272df533a1bb078030 (diff) |
Avoid buffer overflow on strncat usage
strncat() does not want the total size but the maximum length
(without trailing NUL) that can still be added. Switch over
to snprintf which is both more readable and avoids this issue.
Signed-off-by: Dirk Mueller <dmueller@suse.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'purgatory/arch')
0 files changed, 0 insertions, 0 deletions