ports/sysutils/dd_rescue/files/patch-dd_rescue.c
MANTANI Nobutaka 52af0eeb26 Update to 1.13.
PR:		ports/111841
Submitted by:	Eric P. Scott <eps+pbug0704@ana.com>
2007-04-28 14:05:29 +00:00

12 lines
319 B
C

--- 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);
}