diff --git a/ctdb/common/system_linux.c b/ctdb/common/system_linux.c index ab232f0aaff..84daba4fdfa 100644 --- a/ctdb/common/system_linux.c +++ b/ctdb/common/system_linux.c @@ -606,6 +606,7 @@ int ctdb_set_process_name(const char *name) char procname[16]; strncpy(procname, name, 15); + procname[15] = '\0'; return prctl(PR_SET_NAME, (unsigned long)procname, 0, 0, 0); }