From: Alan Cox Date: Sat, 15 Nov 2014 21:14:57 +0000 (+0000) Subject: binman: memcpy the initialized data over X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=4fac4100cb2a78ff0de002526e8d4bdac9715ccb;p=FUZIX.git binman: memcpy the initialized data over This accidentally got removed when I stripped it down from the full featured kernel version. --- diff --git a/Library/tools/binman.c b/Library/tools/binman.c index d6160842..1e4d73f1 100644 --- a/Library/tools/binman.c +++ b/Library/tools/binman.c @@ -75,6 +75,7 @@ int main(int argc, char *argv[]) perror(argv[3]); exit(1); } + memcpy(buf + s__INITIALIZED, buf + s__INITIALIZER, l__INITIALIZER); /* Write out everything that is data, omit everything that will be zapped */ if (fwrite(buf + 0x100, s__DATA - 0x100, 1, bin) != 1) {