Fix devread(): fread() returns the number of elements, not bytes
diff --git a/src/blockdev.c b/src/blockdev.c
index d3c2a48..2395c45 100644
--- a/src/blockdev.c
+++ b/src/blockdev.c
@@ -66,7 +66,7 @@
 		fprintf(stderr, "devread: Failed to set offset on device.\n");
 		return 0;
 	}
-	if (fread(buf, byte_len, 1, block_device) != byte_len) {
+	if (fread(buf, byte_len, 1, block_device) != 1) {
 		fprintf(stderr, "devread: Failed to read from device.\n");
 		return 0;
 	}