diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1999-08-17 17:51:32 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1999-08-17 17:51:32 +0000 |
commit | 7c3a0f3a090339ac22e2ace55eab03575f708273 (patch) | |
tree | b5e6edf00583828f0083de4ccb18db25fa48c739 /options.c | |
parent | 7785b91fb6a49cab6927634d2c1997b47a4bf406 (diff) | |
download | fetchmail-7c3a0f3a090339ac22e2ace55eab03575f708273.tar.gz fetchmail-7c3a0f3a090339ac22e2ace55eab03575f708273.tar.bz2 fetchmail-7c3a0f3a090339ac22e2ace55eab03575f708273.zip |
Changes from the road.
svn path=/trunk/; revision=2540
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -430,7 +430,7 @@ struct query *ctl; /* option record to be initialized */ break; case 'r': case LA_FOLDER: - xalloca(buf, char *, strlen(optarg)); + xalloca(buf, char *, strlen(optarg) + 1); strcpy(buf, optarg); cp = strtok(buf, ","); do { @@ -440,7 +440,7 @@ struct query *ctl; /* option record to be initialized */ break; case 'S': case LA_SMTPHOST: - xalloca(buf, char *, strlen(optarg)); + xalloca(buf, char *, strlen(optarg) + 1); strcpy(buf, optarg); cp = strtok(buf, ","); do { @@ -455,7 +455,7 @@ struct query *ctl; /* option record to be initialized */ break; case 'Z': case LA_ANTISPAM: - xalloca(buf, char *, strlen(optarg)); + xalloca(buf, char *, strlen(optarg) + 1); strcpy(buf, optarg); cp = strtok(buf, ","); do { |