diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/mips/kernel/irixelf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/kernel/irixelf.c b/arch/mips/kernel/irixelf.c index a82fae221ce4..1bbefbf43373 100644 --- a/arch/mips/kernel/irixelf.c +++ b/arch/mips/kernel/irixelf.c | |||
@@ -1009,7 +1009,7 @@ static int notesize(struct memelfnote *en) | |||
1009 | int sz; | 1009 | int sz; |
1010 | 1010 | ||
1011 | sz = sizeof(struct elf_note); | 1011 | sz = sizeof(struct elf_note); |
1012 | sz += roundup(strlen(en->name), 4); | 1012 | sz += roundup(strlen(en->name) + 1, 4); |
1013 | sz += roundup(en->datasz, 4); | 1013 | sz += roundup(en->datasz, 4); |
1014 | 1014 | ||
1015 | return sz; | 1015 | return sz; |
@@ -1028,7 +1028,7 @@ static int writenote(struct memelfnote *men, struct file *file) | |||
1028 | { | 1028 | { |
1029 | struct elf_note en; | 1029 | struct elf_note en; |
1030 | 1030 | ||
1031 | en.n_namesz = strlen(men->name); | 1031 | en.n_namesz = strlen(men->name) + 1; |
1032 | en.n_descsz = men->datasz; | 1032 | en.n_descsz = men->datasz; |
1033 | en.n_type = men->type; | 1033 | en.n_type = men->type; |
1034 | 1034 | ||