diff options
| author | Michael Bestas <mkbestas@lineageos.org> | 2017-05-04 03:22:47 +0300 |
|---|---|---|
| committer | Rygebin <kaankulahli@gmail.com> | 2017-06-24 09:32:17 +0000 |
| commit | 30a0d0c9492bdcc107de0f87207dec7b97ab4456 (patch) | |
| tree | fa2026e95376eaa8baa6f6adba7e9ed04e2c8957 /gps/utils/LocThread.cpp | |
| parent | 5a4a4ae55a32ee5003a008ffe4a357987c1a418b (diff) | |
seed: Squashed update to LA.BR.1.2.9_rb1.14
Change-Id: Ib85e6d98f68de19456e460a853dfa3ed44dfab60
Diffstat (limited to 'gps/utils/LocThread.cpp')
| -rw-r--r-- | gps/utils/LocThread.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gps/utils/LocThread.cpp b/gps/utils/LocThread.cpp index 19bf101..a7fd1c8 100644 --- a/gps/utils/LocThread.cpp +++ b/gps/utils/LocThread.cpp @@ -84,9 +84,7 @@ LocThreadDelegate::LocThreadDelegate(LocThread::tCreate creator, if (mThandle) { // set thread name char lname[16]; - int len = sizeof(lname) - 1; - memcpy(lname, threadName, len); - lname[len] = 0; + strlcpy(lname, threadName, sizeof(lname)); // set the thread name here pthread_setname_np(mThandle, lname); |
