aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-01-03 22:59:49 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-01-03 22:59:49 +0000
commitc17733b805fa9ad9692ee0115a5e7b5b62570e09 (patch)
treeb0b0938178fe1ceeb41ae5b0ab73cff2c55dbd88 /options.c
parent176a6b8b9b157d4bb93c38c0f2af34cc4656950a (diff)
downloadfetchmail-c17733b805fa9ad9692ee0115a5e7b5b62570e09.tar.gz
fetchmail-c17733b805fa9ad9692ee0115a5e7b5b62570e09.tar.bz2
fetchmail-c17733b805fa9ad9692ee0115a5e7b5b62570e09.zip
Cleanup patches from Gunther Leber.
svn path=/trunk/; revision=2699
Diffstat (limited to 'options.c')
-rw-r--r--options.c11
1 files changed, 4 insertions, 7 deletions
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;