Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/ftp Increase the buffer limit; otherwise files in:



details:   https://anonhg.NetBSD.org/src/rev/6cf2e500e12c
branches:  trunk
changeset: 335539:6cf2e500e12c
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 12 14:17:08 2015 +0000

description:
Increase the buffer limit; otherwise files in:

    http://www.taxdetective.ca/Samples/sampledatafiles.html

fail.

diffstat:

 usr.bin/ftp/ftp_var.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 85cd337112e6 -r 6cf2e500e12c usr.bin/ftp/ftp_var.h
--- a/usr.bin/ftp/ftp_var.h     Mon Jan 12 09:51:26 2015 +0000
+++ b/usr.bin/ftp/ftp_var.h     Mon Jan 12 14:17:08 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ftp_var.h,v 1.82 2012/12/21 18:07:36 christos Exp $    */
+/*     $NetBSD: ftp_var.h,v 1.83 2015/01/12 14:17:08 christos Exp $    */
 
 /*-
  * Copyright (c) 1996-2009 The NetBSD Foundation, Inc.
@@ -169,7 +169,7 @@
 /*
  * Global defines
  */
-#define        FTPBUFLEN       MAXPATHLEN + 200
+#define        FTPBUFLEN       (4 * MAXPATHLEN)
 #define        MAX_IN_PORT_T   0xffffU
 
 #define        HASHBYTES       1024    /* default mark for `hash' command */



Home | Main Index | Thread Index | Old Index