aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-08-17 17:51:32 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-08-17 17:51:32 +0000
commit7c3a0f3a090339ac22e2ace55eab03575f708273 (patch)
treeb5e6edf00583828f0083de4ccb18db25fa48c739 /options.c
parent7785b91fb6a49cab6927634d2c1997b47a4bf406 (diff)
downloadfetchmail-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/options.c b/options.c
index 00060960..5172657d 100644
--- a/options.c
+++ b/options.c
@@ -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 {