summaryrefslogtreecommitdiffstats
path: root/usr.bin/ftp
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1996-12-17 17:59:40 +0000
committerimp <imp@FreeBSD.org>1996-12-17 17:59:40 +0000
commit2e502507379b7bda44d1db2cd6bc3b0dca419579 (patch)
treeb595c2a86d65d6c00381cc0a6d71024a5f4120fb /usr.bin/ftp
parentaee5955ac4e49ed6c3594e020f734a61ff6727a7 (diff)
downloadFreeBSD-src-2e502507379b7bda44d1db2cd6bc3b0dca419579.zip
FreeBSD-src-2e502507379b7bda44d1db2cd6bc3b0dca419579.tar.gz
Fix problem in ftp and case mapping mode where the converted string wasn't
terminated properly. Fix is from the PR and works for the test cases I threw at it. Should be safe and desirable for back porting to 2.2 or earlier if there are people still comitting to -stable. Submitted by: Marc Slemko <marcs@znep.com> Closes PR: 1864
Diffstat (limited to 'usr.bin/ftp')
-rw-r--r--usr.bin/ftp/cmds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.bin/ftp/cmds.c b/usr.bin/ftp/cmds.c
index 9756042..371ad2e 100644
--- a/usr.bin/ftp/cmds.c
+++ b/usr.bin/ftp/cmds.c
@@ -742,6 +742,7 @@ mget(argc, argv)
if (mcase) {
for (tp2 = tmpbuf; ch = *tp++;)
*tp2++ = isupper(ch) ? tolower(ch) : ch;
+ *tp2 = '\0';
tp = tmpbuf;
}
if (ntflag) {
OpenPOWER on IntegriCloud