diff options
author | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-08-29 16:09:07 +0200 |
---|---|---|
committer | Ronan Le Martret <ronan.lemartret@iot.bzh> | 2017-08-29 16:10:29 +0200 |
commit | 55f0a986d2c819731e45e5612dfc76a5d1ca76ce (patch) | |
tree | 83fe166f7c87bdfa604f5370b2886008eb3d3d1a /LICENSE | |
parent | 9db0b6603a4144b35615943031b4ca31c8c2b63f (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 'LICENSE')
0 files changed, 0 insertions, 0 deletions