diff options
author | Madhanraj Chelladurai <mchellad@codeaurora.org> | 2016-06-02 15:31:10 +0530 |
---|---|---|
committer | Madhanraj Chelladurai <mchellad@codeaurora.org> | 2016-06-02 15:33:03 +0530 |
commit | 4c2156ec8a47612dd0be88d51c448c316bfd23bf (patch) | |
tree | 05f2b8146f9ae8b1f603b6f033e2397b5d5634d8 /utils/LocThread.cpp | |
parent | 83144d0f3252481f742eac44b5ef8413a9377870 (diff) | |
parent | 88e1de76b04fa04e5f62e722c74c69764c838d30 (diff) | |
download | gps-4c2156ec8a47612dd0be88d51c448c316bfd23bf.tar.gz |
Merge branch 'quic/LA.AF.1.2.1' into location.lnx.1.0-dev
merge automotive specific changes from LA.AF.1.2.1 into
location development branch
Change-Id: I90a5e60c46bb5b1aafaf4cd9aaf2dcb79449f288
CRs-Fixed: 1017254
Diffstat (limited to 'utils/LocThread.cpp')
-rw-r--r-- | utils/LocThread.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/LocThread.cpp b/utils/LocThread.cpp index e8e8392..685841e 100644 --- a/utils/LocThread.cpp +++ b/utils/LocThread.cpp @@ -85,7 +85,10 @@ LocThreadDelegate::LocThreadDelegate(LocThread::tCreate creator, if (mThandle) { // set thread name char lname[16]; - strlcpy(lname, threadName, sizeof(lname)); + int len = (sizeof(lname)>sizeof(threadName)) ? + (sizeof(threadName) -1):(sizeof(lname) - 1); + memcpy(lname, threadName, len); + lname[len] = 0; // set the thread name here pthread_setname_np(mThandle, lname); |