aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-05 12:39:21 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-05 12:39:21 -0700
commit35d52abdfc7e6a6af960c80869b6a1e95262810f (patch)
treefd5ff261675311a450e50423cbc17803daca8555
parent0b19aba1d072ab3a2d9f528d7f0042dc8bc9e0ca (diff)
downloadlwip-35d52abdfc7e6a6af960c80869b6a1e95262810f.tar.gz
lwip-35d52abdfc7e6a6af960c80869b6a1e95262810f.tar.xz
lwip-35d52abdfc7e6a6af960c80869b6a1e95262810f.zip
disklib: Fix write_verify_sectors
Compare the entire chunk (all sectors), not only the first one. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
-rw-r--r--com32/gpllib/disk/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/gpllib/disk/write.c b/com32/gpllib/disk/write.c
index 70c73ba4..b772ba72 100644
--- a/com32/gpllib/disk/write.c
+++ b/com32/gpllib/disk/write.c
@@ -121,7 +121,7 @@ int write_verify_sectors(struct driveinfo* drive_info,
if (!rb)
return -1; /* Readback failure */
- rv = memcmp(data, rb, SECTOR);
+ rv = memcmp(data, rb, SECTOR * size);
free(rb);
return rv ? -1 : 0;
}