summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobias <tobias@openbsd.org>2013-04-01 16:11:32 +0000
committertobias <tobias@openbsd.org>2013-04-01 16:11:32 +0000
commita65d77326620ddd5fc5a0c09cf8a7fb7a9aaa13e (patch)
tree50710ab8befb8d9fbd911042aae549121e0eca04
parentAvoid memory leak while parsing diff's output. (diff)
downloadwireguard-openbsd-a65d77326620ddd5fc5a0c09cf8a7fb7a9aaa13e.tar.xz
wireguard-openbsd-a65d77326620ddd5fc5a0c09cf8a7fb7a9aaa13e.zip
'#' starts a comment, not a line continuation.
ok gilles
-rw-r--r--usr.sbin/smtpd/aliases.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/aliases.c b/usr.sbin/smtpd/aliases.c
index 8aa57493e42..51e94a36773 100644
--- a/usr.sbin/smtpd/aliases.c
+++ b/usr.sbin/smtpd/aliases.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: aliases.c,v 1.61 2013/02/14 12:30:49 gilles Exp $ */
+/* $OpenBSD: aliases.c,v 1.62 2013/04/01 16:11:32 tobias Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
@@ -197,7 +197,7 @@ aliases_expand_include(struct expand *expand, const char *filename)
FILE *fp;
char *line;
size_t len, lineno = 0;
- char delim[3] = { '\\', '#', '\0' };
+ char delim[3] = { '\\', '\0', '#' };
fp = fopen(filename, "r");
if (fp == NULL) {