Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/ftp oops reversed the test.



details:   https://anonhg.NetBSD.org/src/rev/4108546b7114
branches:  trunk
changeset: 473655:4108546b7114
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jun 12 18:19:53 1999 +0000

description:
oops reversed the test.

diffstat:

 usr.bin/ftp/complete.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 845d926f3425 -r 4108546b7114 usr.bin/ftp/complete.c
--- a/usr.bin/ftp/complete.c    Sat Jun 12 18:07:34 1999 +0000
+++ b/usr.bin/ftp/complete.c    Sat Jun 12 18:19:53 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: complete.c,v 1.22 1999/06/12 18:07:34 christos Exp $   */
+/*     $NetBSD: complete.c,v 1.23 1999/06/12 18:19:53 christos Exp $   */
 
 /*-
  * Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: complete.c,v 1.22 1999/06/12 18:07:34 christos Exp $");
+__RCSID("$NetBSD: complete.c,v 1.23 1999/06/12 18:19:53 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -220,10 +220,10 @@
                        continue;
 
 #if defined(__SVR4) || defined(__linux__)
-               if (len > dp->d_namlen)
+               if (len > strlen(dp->d_name))
                        continue;
 #else
-               if (len > strlen(dp->d_name))
+               if (len > dp->d_namlen)
                        continue;
 #endif
                if (strncmp(file, dp->d_name, len) == 0) {



Home | Main Index | Thread Index | Old Index