summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorkristerw <kristerw@NetBSD.org>2001-05-25 23:40:25 +0000
committerkristerw <kristerw@NetBSD.org>2001-05-25 23:40:25 +0000
commit1571b4e91f29659391965890550abd1ceaae9916 (patch)
tree079ed2ef3c6846d29de9677fe4859e4c046e7ee1 /libexec
parente2a08caf68f1eea5e0d54ee40c97d3c7d43c7045 (diff)
Initialize a pointer needed when expanding the %C "display file escape
sequence".
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ftpd/conf.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libexec/ftpd/conf.c b/libexec/ftpd/conf.c
index a05794e50c8..d7de8e348c5 100644
--- a/libexec/ftpd/conf.c
+++ b/libexec/ftpd/conf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: conf.c,v 1.41 2001/04/25 01:46:25 lukem Exp $ */
+/* $NetBSD: conf.c,v 1.42 2001/05/25 23:40:25 kristerw Exp $ */
/*-
* Copyright (c) 1997-2001 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: conf.c,v 1.41 2001/04/25 01:46:25 lukem Exp $");
+__RCSID("$NetBSD: conf.c,v 1.42 2001/05/25 23:40:25 kristerw Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -628,7 +628,8 @@ int
display_file(const char *file, int code)
{
FILE *f;
- char *buf, *p, *cwd;
+ char *buf, *p;
+ char cwd[MAXPATHLEN];
size_t len;
off_t lastnum;
time_t now;