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:
Axel Dörfler
2002-07-18 13:31:55 +00:00
parent 9285de5124
commit 8bcee3b317
+3 -1
View File
@@ -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;