Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/libexec/ftpd bump sizes



details:   https://anonhg.NetBSD.org/src/rev/d451dbe57894
branches:  trunk
changeset: 966138:d451dbe57894
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Oct 15 18:29:32 2019 +0000

description:
bump sizes

diffstat:

 libexec/ftpd/extern.h |  4 ++--
 libexec/ftpd/ftpd.c   |  6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r c2ec4c4aafd7 -r d451dbe57894 libexec/ftpd/extern.h
--- a/libexec/ftpd/extern.h     Tue Oct 15 18:29:21 2019 +0000
+++ b/libexec/ftpd/extern.h     Tue Oct 15 18:29:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.64 2018/06/23 07:21:00 gson Exp $ */
+/*     $NetBSD: extern.h,v 1.65 2019/10/15 18:29:32 christos Exp $     */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -330,7 +330,7 @@
 GLOBAL struct passwd  *pw;
 GLOBAL int             quietmessages;
 GLOBAL char            remotehost[MAXHOSTNAMELEN+1];
-GLOBAL char            remoteloghost[2 * MAXHOSTNAMELEN+1];
+GLOBAL char            remoteloghost[2 * MAXHOSTNAMELEN + 4];
 GLOBAL off_t           restart_point;
 GLOBAL char            tmpline[FTP_BUFLEN];
 GLOBAL int             type;
diff -r c2ec4c4aafd7 -r d451dbe57894 libexec/ftpd/ftpd.c
--- a/libexec/ftpd/ftpd.c       Tue Oct 15 18:29:21 2019 +0000
+++ b/libexec/ftpd/ftpd.c       Tue Oct 15 18:29:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftpd.c,v 1.204 2018/04/28 13:38:00 riastradh Exp $     */
+/*     $NetBSD: ftpd.c,v 1.205 2019/10/15 18:29:32 christos Exp $      */
 
 /*
  * Copyright (c) 1997-2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
 #if 0
 static char sccsid[] = "@(#)ftpd.c     8.5 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: ftpd.c,v 1.204 2018/04/28 13:38:00 riastradh Exp $");
+__RCSID("$NetBSD: ftpd.c,v 1.205 2019/10/15 18:29:32 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -2863,7 +2863,7 @@
 {
 
 #if defined(HAVE_SOCKADDR_SNPRINTF)
-       char abuf[BUFSIZ];
+       char abuf[MAXHOSTNAMELEN];
 #endif
 
        struct sockaddr *sa = (struct sockaddr *)&who->si_su;



Home | Main Index | Thread Index | Old Index