From 7c3a0f3a090339ac22e2ace55eab03575f708273 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 17 Aug 1999 17:51:32 +0000 Subject: Changes from the road. svn path=/trunk/; revision=2540 --- options.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'options.c') 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 { -- cgit v1.2.3