diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-08-29 16:07:56 +0200 |
---|---|---|
committer | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-08-29 16:07:56 +0200 |
commit | c0ae4498374ae0873070566dfa570145345708e0 (patch) | |
tree | 167729220b3ca98148183382fd64668287f902d9 /afb-utilities | |
parent | ce1090128a8c6b403670d64ee1b80620b6736aa6 (diff) |
Fix strncat funct
I: Statement might be overflowing a buffer in strncat. Common mistake:
BAD: strncat(buffer,charptr,sizeof(buffer)) is wrong, it takes the left over size as 3rd argument
GOOD: strncat(buffer,charptr,sizeof(buffer)-strlen(buffer)-1)
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Diffstat (limited to 'afb-utilities')
0 files changed, 0 insertions, 0 deletions