commit | ef75a2a80c51e12da9b5d46ee8ae010b267f26bb | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Jan 19 15:53:14 2018 -0800 |
committer | Elliott Hughes <enh@google.com> | Fri Jan 19 15:53:14 2018 -0800 |
tree | 2b05896c41a3a80f18ebf627e7e6412b7ea091c3 | |
parent | 94ae99932786c7b3fff9379052770a5b57313c4b [diff] |
Avoid possible buffer overflow. clang-tidy rightly complains that this code for concatenating two strings is incorrect because it doesn't take into account the space used by the first string when appending the second string. Just use snprintf instead. Bug: N/A Test: builds, boots Change-Id: Ifdaff43a87301a876369635013516aab41cd48c3