blob: 1f8493fa42328b9dad33b21e37e676b047a619e2 (
plain) (
tree)
|
|
--- dd_rescue.c.orig Sun Mar 18 07:29:10 2007
+++ dd_rescue.c
@@ -742,7 +742,8 @@
ipos = 0;
#ifdef O_DIRECT
- if (posix_memalign(mp, sysconf(_SC_PAGESIZE), softbs)) {
+ buf = malloc(softbs);
+ if (!buf) {
fplog(stderr, "dd_rescue: (fatal): allocation of aligned buffer failed!\n");
cleanup(); exit(18);
}
|