summaryrefslogtreecommitdiff
path: root/ndb/src/common/portlib/NdbThread.c
diff options
context:
space:
mode:
Diffstat (limited to 'ndb/src/common/portlib/NdbThread.c')
-rw-r--r--ndb/src/common/portlib/NdbThread.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ndb/src/common/portlib/NdbThread.c b/ndb/src/common/portlib/NdbThread.c
index 8fc077edcdc..859b5cf1ec3 100644
--- a/ndb/src/common/portlib/NdbThread.c
+++ b/ndb/src/common/portlib/NdbThread.c
@@ -51,8 +51,7 @@ struct NdbThread* NdbThread_Create(NDB_THREAD_FUNC *p_thread_func,
if (tmpThread == NULL)
return NULL;
- snprintf(tmpThread->thread_name, sizeof(tmpThread->thread_name),
- "%s", p_thread_name);
+ strnmov(tmpThread->thread_name,p_thread_name,sizeof(tmpThread->thread_name));
pthread_attr_init(&thread_attr);
pthread_attr_setstacksize(&thread_attr, thread_stack_size);