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:
Linux Build Service Account 2016-04-16 09:39:18 -07:00
commit f5aa6dd063

View file

@ -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);