summaryrefslogtreecommitdiff
path: root/trusty/coverage/coverage_test.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-06-03 12:10:30 -0700
committerNick Kralevich <nnk@google.com>2013-06-03 12:13:36 -0700
commit960ac434a4960b0524993544949ef892c08339ed (patch)
treeb0b4557d0064227b287bdec137836c221c2749ec /trusty/coverage/coverage_test.cpp
parente44c6b7183985a6ac586642e9ffc9c99a9140057 (diff)
fix strncat misuse
The third argument of strncat() tells how much data to append from src, not the total size of the buffer. Change uses of strncat() to strlcat(), which has the buffer overflow protection behavior intended by the original author. This fixes the following compiler warning: In function 'strncat', inlined from 'print_type' at system/core/toolbox/lsof.c:76:12: bionic/libc/include/string.h:142:5: warning: call to __builtin___strncat_chk might overflow destination buffer [enabled by default] Change-Id: Id69edc641de3cb87d1867a409cd57b04b12f90a7
Diffstat (limited to 'trusty/coverage/coverage_test.cpp')
0 files changed, 0 insertions, 0 deletions