From c17733b805fa9ad9692ee0115a5e7b5b62570e09 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 3 Jan 2000 22:59:49 +0000 Subject: Cleanup patches from Gunther Leber. svn path=/trunk/; revision=2699 --- options.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'options.c') diff --git a/options.c b/options.c index 4129342b..f4210f62 100644 --- a/options.c +++ b/options.c @@ -299,17 +299,14 @@ struct query *ctl; /* option record to be initialized */ break; case 'f': case LA_RCFILE: - rcfile = (char *) xmalloc(strlen(optarg)+1); - strcpy(rcfile,optarg); + rcfile = (char *) xstrdup(optarg); break; case 'i': case LA_IDFILE: - rctl->idfile = (char *) xmalloc(strlen(optarg)+1); - strcpy(rctl->idfile,optarg); + rctl->idfile = (char *) xstrdup(optarg); break; case LA_POSTMASTER: - rctl->postmaster = (char *) xmalloc(strlen(optarg)+1); - strcpy(rctl->postmaster,optarg); + rctl->postmaster = (char *) xstrdup(optarg); break; case LA_NOBOUNCE: run.bouncemail = FALSE; @@ -476,7 +473,7 @@ struct query *ctl; /* option record to be initialized */ do { struct idlist *idp = save_str(&ctl->antispam, NULL, 0);; - idp->val.status.num = atoi(cp); + idp->val.status.num = xatoi(cp, &errflag); } while ((cp = strtok((char *)NULL, ","))); break; -- cgit v1.2.3