From f9ffa0ef0236a76458296afe70a8b5adc8197f5e Mon Sep 17 00:00:00 2001 From: jtc Date: Thu, 15 Dec 1994 08:58:44 +0000 Subject: [PATCH] Null terminate case-mapped filenames (PR #640). --- usr.bin/ftp/cmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c index 970c128833d6..052bfeb1f050 100644 --- a/usr.bin/ftp/cmds.c +++ b/usr.bin/ftp/cmds.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)cmds.c 8.5 (Berkeley) 4/6/94";*/ -static char *rcsid = "$Id: cmds.c,v 1.6 1994/08/29 03:09:06 mycroft Exp $"; +static char *rcsid = "$Id: cmds.c,v 1.7 1994/12/15 08:58:44 jtc Exp $"; #endif /* not lint */ /* @@ -743,6 +743,7 @@ mget(argc, argv) if (mcase) { for (tp2 = tmpbuf; ch = *tp++;) *tp2++ = isupper(ch) ? tolower(ch) : ch; + *tp2 = '\0'; tp = tmpbuf; } if (ntflag) {