OSDN Git Service

Use strlcpy() instead of strncpy() to copy string property
authorPavlin Radoslavov <pavlin@google.com>
Thu, 7 Sep 2017 23:22:53 +0000 (16:22 -0700)
committerPavlin Radoslavov <pavlin@google.com>
Thu, 7 Sep 2017 23:22:53 +0000 (16:22 -0700)
commitc5c668a6d453f057d0a39534264c6f641d36892b
treef6271de5c5cfd4da31c4bdb899d9d6c9270e8faf
parentc7bf47cefc5446e99ff12b6cae45a0984e0b9999
Use strlcpy() instead of strncpy() to copy string property

Also, allocate property with extra space for the null-termination string.

Test: Unit tests passing
Change-Id: I67452cb640cda752c3094c2b1a47eaa13c24e5c6
btcore/src/property.cc