summaryrefslogtreecommitdiff
path: root/usr.bin/tftp
diff options
context:
space:
mode:
authorMarcel Moolenaar <marcel@FreeBSD.org>2014-03-04 01:14:37 +0000
committerMarcel Moolenaar <marcel@FreeBSD.org>2014-03-04 01:14:37 +0000
commit0f8d6cfc1522ee391d232f145c15c2de3d859920 (patch)
tree0214267b4f1492f6e7dc6fedc34c8481397da422 /usr.bin/tftp
parent5e4b8b0d9129a348d6b6673ef4d572f80c63883f (diff)
downloadsrc-test2-0f8d6cfc1522ee391d232f145c15c2de3d859920.tar.gz
src-test2-0f8d6cfc1522ee391d232f145c15c2de3d859920.zip
Increase MAXLINE to deal with longer paths.
Obtained from: Juniper Networks, Inc.
Notes
Notes: svn path=/head/; revision=262721
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r--usr.bin/tftp/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tftp/main.c b/usr.bin/tftp/main.c
index c0f508838d3d..7db7818f7ebf 100644
--- a/usr.bin/tftp/main.c
+++ b/usr.bin/tftp/main.c
@@ -74,7 +74,7 @@ __FBSDID("$FreeBSD$");
#include "tftp-options.h"
#include "tftp.h"
-#define MAXLINE 200
+#define MAXLINE (2 * MAXPATHLEN)
#define TIMEOUT 5 /* secs between rexmt's */
typedef struct sockaddr_storage peeraddr;