]> git.proxmox.com Git - mirror_corosync.git/commitdiff
STATS: increase the space for application names
authorAngus Salkeld <asalkeld@redhat.com>
Wed, 12 Jan 2011 02:25:31 +0000 (13:25 +1100)
committerSteven Dake <sdake@redhat.com>
Fri, 4 Feb 2011 16:44:12 +0000 (09:44 -0700)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Seven Dake <sdake@redhat.com>
exec/coroipcs.c

index 703802ac874e63638c99b8aed6081ecece649992..189723117cdda77a69198acaad0e2a1ee5903a97 100644 (file)
@@ -1545,8 +1545,8 @@ static char * pid_to_name (pid_t pid, char *out_name, size_t name_len)
 static void coroipcs_init_conn_stats (
        struct conn_info *conn)
 {
-       char conn_name[42];
-       char proc_name[32];
+       char conn_name[CS_MAX_NAME_LENGTH];
+       char proc_name[CS_MAX_NAME_LENGTH];
 
        if (conn->client_pid > 0) {
                if (pid_to_name (conn->client_pid, proc_name, sizeof(proc_name)))