From a7380b60b3bf457322551168f97c845257f544dd Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 29 Dec 2003 05:46:56 -0800 Subject: [PATCH] [PATCH] missing padding in cpio_mkfile in usr/gen_init_cpio.c From: Olaf Hering We need to update `offset' here so that the subsequent push_pad() (which uses `offset') will do the right thing. --- usr/gen_init_cpio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/gen_init_cpio.c b/usr/gen_init_cpio.c index 2db360dd901a2..e1ccfaa84caac 100644 --- a/usr/gen_init_cpio.c +++ b/usr/gen_init_cpio.c @@ -197,6 +197,7 @@ void cpio_mkfile(const char *filename, const char *location, for (i = 0; i < buf.st_size; ++i) fputc(filebuf[i], stdout); + offset += buf.st_size; close(file); free(filebuf); push_pad(); -- 2.53.0