summaryrefslogtreecommitdiff
path: root/mail/exim3/patches/patch-ad
blob: 2b2cefac90c04109170a4c4bf6ebd3e20fac05f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-ad,v 1.1 2004/05/07 17:47:32 abs Exp $

--- src/accept.c.orig	Thu Apr  4 13:56:16 2002
+++ src/accept.c
@@ -1895,7 +1895,7 @@ if (headers_check_syntax)
           char *verb = "is";
           int len;
 
-          while (*t != ':') *tt++ = *t++;
+          while (*t != ':' && tt < &hname[sizeof(hname)-2]) *tt++ = *t++;
           *tt = 0;
 
           /* Arrange not to include any white space at the end in the