aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authorarved <arved@FreeBSD.org>2004-08-11 00:19:01 +0800
committerarved <arved@FreeBSD.org>2004-08-11 00:19:01 +0800
commita05b4d6942b301142a38fc46ee44b208936a3b8e (patch)
treeb8afb1fce492b5ca61b555bdcdc218cae45e1bd7 /ftp
parent461aca08a7fafb4de77d0203afd64e55f9723917 (diff)
downloadfreebsd-ports-gnome-a05b4d6942b301142a38fc46ee44b208936a3b8e.tar.gz
freebsd-ports-gnome-a05b4d6942b301142a38fc46ee44b208936a3b8e.tar.zst
freebsd-ports-gnome-a05b4d6942b301142a38fc46ee44b208936a3b8e.zip
Fix build with gcc 3.4
PR: 70202 Submitted by: Rudolf Cejka <cejkar@fit.vutbr.cz>
Diffstat (limited to 'ftp')
-rw-r--r--ftp/tnftpd/files/patch-src-logwtmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ftp/tnftpd/files/patch-src-logwtmp.c b/ftp/tnftpd/files/patch-src-logwtmp.c
index ce3789457f1a..7b667a2f314d 100644
--- a/ftp/tnftpd/files/patch-src-logwtmp.c
+++ b/ftp/tnftpd/files/patch-src-logwtmp.c
@@ -43,7 +43,7 @@
+ NI_NUMERICHOST);
+ host = hostbuf;
+ if (strlen(host) > UT_HOSTSIZE)
-+ host[UT_HOSTSIZE] = '\0';
++ hostbuf[UT_HOSTSIZE] = '\0';
+ }
+ }