system/set_threadname: fix

This commit is contained in:
martii
2014-04-16 17:26:11 +02:00
committed by [CST] Focus
parent 611964e7d7
commit 4b09040caa

View File

@@ -9,6 +9,6 @@ inline void set_threadname(const char *name)
char threadname[17];
strncpy(threadname, name, sizeof(threadname));
threadname[16] = 0;
prctl (PR_SET_NAME, (unsigned long)&threadname);
prctl (PR_SET_NAME, (unsigned long)threadname);
}
#endif