summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-09 06:07:04 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2001-01-09 06:07:04 +0000
commita70e850e6db94de30c5249afc255c2332340c8e8 (patch)
tree86cfcaa2b2d27667657b0e684360b34dfbc0c0be
parent7de59c9dec49a77e3d162b283de07fd811e97097 (diff)
make sure replydirname() do not truncate names, even if the filename
is MAXPATHLEN doublequotes. From: Paul Janzen <pjanzen@foatdi.harvard.edu>
-rw-r--r--libexec/ftpd/ftpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c
index b9b67ff4ac4..97e8e9e18d7 100644
--- a/libexec/ftpd/ftpd.c
+++ b/libexec/ftpd/ftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpd.c,v 1.88 2001/01/09 05:07:01 itojun Exp $ */
+/* $OpenBSD: ftpd.c,v 1.89 2001/01/09 06:07:03 itojun Exp $ */
/* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */
/*
@@ -1974,7 +1974,7 @@ replydirname(name, message)
const char *name, *message;
{
char *p, *ep;
- char npath[MAXPATHLEN];
+ char npath[MAXPATHLEN * 2];
p = npath;
ep = &npath[sizeof(npath) - 1];