[BACK]Return to dd.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / bin / dd

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/bin/dd/dd.c between version 1.48 and 1.49

version 1.48, 2011/11/06 21:22:23 version 1.49, 2012/02/21 01:49:01
Line 212  setup(void)
Line 212  setup(void)
          * 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 */
                 }                  }

Legend:
Removed from v.1.48  
changed lines
  Added in v.1.49

CVSweb <webmaster@jp.NetBSD.org>