version 1.48, 2011/11/06 21:22:23 |
version 1.49, 2012/02/21 01:49:01 |
|
|
* record oriented I/O, only need a single buffer. |
* record oriented I/O, only need a single buffer. |
*/ |
*/ |
if (!(ddflags & (C_BLOCK|C_UNBLOCK))) { |
if (!(ddflags & (C_BLOCK|C_UNBLOCK))) { |
if ((in.db = malloc(out.dbsz + in.dbsz - 1)) == NULL) { |
size_t dbsz = out.dbsz; |
|
if (!(ddflags & C_BS)) |
|
dbsz += in.dbsz - 1; |
|
if ((in.db = malloc(dbsz)) == NULL) { |
err(EXIT_FAILURE, NULL); |
err(EXIT_FAILURE, NULL); |
/* NOTREACHED */ |
/* NOTREACHED */ |
} |
} |