Le 02/09/2012 16:06, rustyBSD a écrit : > [demime 1.01d removed an attachment of type text/x-patch which had a name of > scsi.c.diff] Mmhhh...
--- scsi.c Sun Sep 2 15:47:45 2012 +++ scsi.c Sun Sep 2 16:00:42 2012 @@ -223,6 +223,7 @@ case 'z': { char *p = malloc(count + 1); + if (!p) err(errno, "malloc failed"); p[count] = 0; strncpy(p, (char *)arg, count); if (letter == 'z') @@ -307,6 +308,8 @@ data_fmt = cget(&h, 0); scsireq->databuf = malloc(count); + if (!scsireq->databuf) + err(errno, "malloc failed"); if (data_phase == out) { if (strcmp(data_fmt, "-") == 0) {