summaryrefslogtreecommitdiff
path: root/kdump/kdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'kdump/kdump.c')
-rw-r--r--kdump/kdump.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kdump/kdump.c b/kdump/kdump.c
index 3247a54..99a1789 100644
--- a/kdump/kdump.c
+++ b/kdump/kdump.c
@@ -192,6 +192,7 @@ static void *generate_new_headers(
}
memcpy(nphdr, &phdr[i], sizeof(*nphdr));
nphdr->p_offset = offset;
+ nphdr++;
offset += phdr[i].p_filesz;
}