Added another subtle change from geist.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@302 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -91,7 +91,9 @@ main(int argc, char *argv[])
|
||||
|
||||
// patch the size of the output into bytes 3 & 4 of the bootblock
|
||||
blocks = st.st_size / 512;
|
||||
blocks++;
|
||||
if ((st.st_size % 512) != 0)
|
||||
blocks++;
|
||||
printf("size %d, blocks %d (size %d)\n", (unsigned long)st.st_size, blocks, blocks * 512);
|
||||
bootsector[2] = (blocks & 0x00ff);
|
||||
bootsector[3] = (blocks & 0xff00) >> 8;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user