diff options
author | Bruno Martins <bgcngm@gmail.com> | 2016-11-16 23:40:24 +0000 |
---|---|---|
committer | davidevinavil <davidevinavil@gmail.com> | 2017-01-21 18:27:40 +0100 |
commit | db17d990d994300016c7e88cecad7de81f5e79e5 (patch) | |
tree | 8c1ec061f63ef1271b03bccc22fe945e6f6b6000 /gps/utils/LocThread.cpp | |
parent | b6b44db0293d2e81356ae8f35c2583f6129ea62c (diff) |
z2_plus: Update GPS stack
* Tag LA.UM.5.5.r1-00100-8x96.0
Change-Id: I18cd979799001ccbaae6d08d07f907689ac5a00a
Diffstat (limited to 'gps/utils/LocThread.cpp')
-rw-r--r-- | gps/utils/LocThread.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gps/utils/LocThread.cpp b/gps/utils/LocThread.cpp index 19bf101..685841e 100644 --- a/gps/utils/LocThread.cpp +++ b/gps/utils/LocThread.cpp @@ -29,6 +29,7 @@ #include <LocThread.h> #include <string.h> #include <pthread.h> +#include <platform_lib_macros.h> class LocThreadDelegate { LocRunnable* mRunnable; @@ -84,7 +85,8 @@ LocThreadDelegate::LocThreadDelegate(LocThread::tCreate creator, if (mThandle) { // set thread name char lname[16]; - int len = sizeof(lname) - 1; + int len = (sizeof(lname)>sizeof(threadName)) ? + (sizeof(threadName) -1):(sizeof(lname) - 1); memcpy(lname, threadName, len); lname[len] = 0; // set the thread name here |