Patches supplied by Florian Zumbiehl

This commit is contained in:
srs5694
2011-03-15 00:34:10 -04:00
parent d3ba7a61f6
commit 9a46b042c5
13 changed files with 479 additions and 101 deletions

View File

@@ -409,7 +409,7 @@ uint64_t DiskIO::DiskSize(int *err) {
// fstat() gives us....
if ((sectors == 0) || (*err == -1)) {
if (fstat64(fd, &st) == 0) {
bytes = (off_t) st.st_size;
bytes = st.st_size;
if ((bytes % UINT64_C(512)) != 0)
cerr << "Warning: File size is not a multiple of 512 bytes!"
<< " Misbehavior is likely!\n\a";