Adjust block-rounding line to match in serve.c

This commit is contained in:
Patrick J Cherry
2018-02-08 16:37:36 +00:00
parent 23d9ff587e
commit a19267b377

View File

@@ -103,7 +103,7 @@ int open_and_mmap(const char* filename, int* out_fd, uint64_t *out_size, void **
*/
if ( size != (size & (~0x1ff))) {
warn("file does not fit into 512-byte sectors; the end of the file will be ignored.");
size = size & (~0x1ff);
size &= ~0x1ff;
}
if (out_size) {