summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libexec/mail.local/mail.local.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/mail.local/mail.local.c b/libexec/mail.local/mail.local.c
index e7f21cf3240..344781cd18a 100644
--- a/libexec/mail.local/mail.local.c
+++ b/libexec/mail.local/mail.local.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mail.local.c,v 1.26 2004/08/08 19:32:45 deraadt Exp $ */
+/* $OpenBSD: mail.local.c,v 1.27 2005/05/29 02:11:49 millert Exp $ */
/*-
* Copyright (c) 1996-1998 Theo de Raadt <deraadt@theos.com>
@@ -41,7 +41,7 @@ char copyright[] =
#if 0
static char sccsid[] = "from: @(#)mail.local.c 5.6 (Berkeley) 6/19/91";
#else
-static char rcsid[] = "$OpenBSD: mail.local.c,v 1.26 2004/08/08 19:32:45 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: mail.local.c,v 1.27 2005/05/29 02:11:49 millert Exp $";
#endif
#endif /* not lint */
@@ -155,7 +155,7 @@ store(char *from)
if ((tbuf = malloc(len + 1)) == NULL)
merr(FATAL, "unable to allocate memory");
memcpy(tbuf, line, len);
- tbuf[len++] = '\0';
+ tbuf[len] = '\0';
line = tbuf;
}
if (line[0] == '\0')