summaryrefslogtreecommitdiff
path: root/purgatory/arch
diff options
context:
space:
mode:
authorDirk Mueller <dmueller@suse.com>2014-02-03 18:50:04 +0100
committerSimon Horman <horms@verge.net.au>2014-02-04 21:36:12 +0900
commitfe2c38cc0fc32573726797e6496c3056d10949c5 (patch)
treed416f62d34d2098e79d699949fd93f7011842626 /purgatory/arch
parentd58ad564852c1dea9cbff3272df533a1bb078030 (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