wok diff linld/stuff/src/TAZBOOT.CPP @ rev 21342
cherokee fix build
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 20 15:26:18 2019 +0200 (2019-04-20) |
parents | cbcb33ee9044 |
children | 87b6697bb350 |
line diff
1.1 --- a/linld/stuff/src/TAZBOOT.CPP Tue Feb 12 12:12:36 2019 +0100 1.2 +++ b/linld/stuff/src/TAZBOOT.CPP Sat Apr 20 15:26:18 2019 +0200 1.3 @@ -131,8 +131,7 @@ 1.4 if (*init && isolseek(&initrddesc) != 0) { 1.5 read(x->fd, &x->filemod, 10); // + x->fileofs & x->filesize 1.6 magic = x->filemod; 1.7 - x->fileofs &= 0xFFFFL; 1.8 - x->fileofs -= 0xC0L + (x->filesize &= 0xFFFF); 1.9 + x->fileofs = 0x7FF0 - (x->filesize &= 0xFFFF); 1.10 if (((short *) &x->fileofs)[1] == 0) addinitrd(); 1.11 else init=""; 1.12 }