Promotion of location.lnx.1.0-00031.
CRs Change ID Subject -------------------------------------------------------------------------------------------------------------- 999457 Id323dd058eddcf50d6fd9ec8908e9997b30c561b Adding fix for KW warning Change-Id: I8ccac5fc5e9aa5558e7311a80be7ba805d203ee8 CRs-Fixed: 999457
This commit is contained in:
commit
f5aa6dd063
1 changed files with 1 additions and 3 deletions
|
@ -84,9 +84,7 @@ LocThreadDelegate::LocThreadDelegate(LocThread::tCreate creator,
|
||||||
if (mThandle) {
|
if (mThandle) {
|
||||||
// set thread name
|
// set thread name
|
||||||
char lname[16];
|
char lname[16];
|
||||||
int len = sizeof(lname) - 1;
|
strlcpy(lname, threadName, sizeof(lname));
|
||||||
memcpy(lname, threadName, len);
|
|
||||||
lname[len] = 0;
|
|
||||||
// set the thread name here
|
// set the thread name here
|
||||||
pthread_setname_np(mThandle, lname);
|
pthread_setname_np(mThandle, lname);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue