diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 1997-10-08 12:10:33 +0000 |
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 1997-10-08 12:10:33 +0000 |
| commit | 4c33974251c4d1b9101e0a3ec40d7f9ecf35ba69 (patch) | |
| tree | 5246a1a3d3586fde2f9bd3d9f9556334817d0379 /bin | |
| parent | 480bf84775f7397032e1293d4aadfe844aeee7d7 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/dd/args.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c index 1f4d7747485a..c5a14f7cb1ca 100644 --- a/bin/dd/args.c +++ b/bin/dd/args.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: args.c,v 1.8 1997/02/22 14:02:41 peter Exp $ */ #ifndef lint @@ -101,6 +101,8 @@ jcl(argv) in.dbsz = out.dbsz = 512; while ((oper = *++argv) != NULL) { + if ((oper = strdup(oper)) == NULL) + errx(1, "unable to allocate space for the argument \"%s\"", *argv); if ((arg = strchr(oper, '=')) == NULL) errx(1, "unknown operand %s", oper); *arg++ = '\0'; |
