Minor fix to reduce the size of a buffer

This commit is contained in:
Simone Mainardi 2018-04-13 18:37:41 +02:00
parent 078a0df62d
commit 6785d7de83

View file

@ -28,7 +28,7 @@
static void* doRun(void* ptr) {
#ifdef __APPLE__
// Mac OS X: must be set from within the thread (can't specify thread ID)
char buf[MAX_PATH];
char buf[32];
snprintf(buf, sizeof(buf), "ThreadPool worker");
if(pthread_setname_np(buf))
ntop->getTrace()->traceEvent(TRACE_WARNING, "Unable to set pthread name %s", buf);