it is:
--- corruption.c.orig Wed Jul 18 04:14:15 2001
+++ corruption.c Wed Jul 18 04:31:29 2001
@@ -22,7 +22,7 @@
int i, buffer[RD_BUFF_SZ];
fflush(fp);
fseek(fp, o, SEEK_SET);
- fread(buffer, sizeof(int), sizeof(buffer), fp);
+ fread(buffer, 1, sizeof(buffer), fp);
printf("Validating end of file writes\n");
for(i = (RD_BUFF_SZ - 1); i >= 0; i--) {
assert(buffer[i] == --j) ;
Andrea
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/