[Patch 3/3] elf: use a macro instead of a raw number

Amerigo Wang
2009-07-01T05:07:43Z

Use TASK_COMM_LEN instead of the raw number 16.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: David Howells <dhowells@redhat.com>

---
Index: linux-2.6/include/linux/elfcore.h
===================================================================
--- linux-2.6.orig/include/linux/elfcore.h
+++ linux-2.6/include/linux/elfcore.h
@@ -90,7 +90,7 @@ struct elf_prpsinfo
__kernel_gid_t pr_gid;
pid_t pr_pid, pr_ppid, pr_pgrp, pr_sid;
/* Lots missing */
- char pr_fname[16]; /* filename of executable */
+ char pr_fname[TASK_COMM_LEN];/* filename of executable */
char pr_psargs[ELF_PRARGSZ]; /* initial part of arg list */
};