blob: 99594b66653b9fc24c3754c88fecb03548283009 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
--- dd_rescue.c.orig Mon Feb 14 09:47:10 2005
+++ dd_rescue.c Tue Mar 15 00:59:42 2005
@@ -717,7 +717,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);
}
|