Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ftpd ensure replydirname() do not truncate the names.
details: https://anonhg.NetBSD.org/src/rev/41198c34ec52
branches: trunk
changeset: 501917:41198c34ec52
user: itojun <itojun%NetBSD.org@localhost>
date: Tue Jan 09 06:07:01 2001 +0000
description:
ensure replydirname() do not truncate the names.
From: Paul Janzen <pjanzen%foatdi.harvard.edu@localhost>
diffstat:
libexec/ftpd/cmds.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 2521da1548ac -r 41198c34ec52 libexec/ftpd/cmds.c
--- a/libexec/ftpd/cmds.c Tue Jan 09 06:05:10 2001 +0000
+++ b/libexec/ftpd/cmds.c Tue Jan 09 06:07:01 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.11 2001/01/09 05:06:14 itojun Exp $ */
+/* $NetBSD: cmds.c,v 1.12 2001/01/09 06:07:01 itojun Exp $ */
/*
* Copyright (c) 1999-2000 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: cmds.c,v 1.11 2001/01/09 05:06:14 itojun Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.12 2001/01/09 06:07:01 itojun Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -792,7 +792,7 @@
replydirname(const char *name, const char *message)
{
char *p, *ep;
- char npath[MAXPATHLEN];
+ char npath[MAXPATHLEN * 2];
p = npath;
ep = &npath[sizeof(npath) - 1];
Home |
Main Index |
Thread Index |
Old Index