diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-01-03 22:59:49 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-01-03 22:59:49 +0000 |
commit | c17733b805fa9ad9692ee0115a5e7b5b62570e09 (patch) | |
tree | b0b0938178fe1ceeb41ae5b0ab73cff2c55dbd88 /options.c | |
parent | 176a6b8b9b157d4bb93c38c0f2af34cc4656950a (diff) | |
download | fetchmail-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.c | 11 |
1 files changed, 4 insertions, 7 deletions
@@ -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; |