Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/pkg_install/lib use size of the right buffer



details:   https://anonhg.NetBSD.org/src/rev/3809aa564348
branches:  trunk
changeset: 538704:3809aa564348
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Sat Oct 26 12:37:00 2002 +0000

description:
use size of the right buffer

diffstat:

 usr.sbin/pkg_install/lib/ftpio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 3c228f0df1a7 -r 3809aa564348 usr.sbin/pkg_install/lib/ftpio.c
--- a/usr.sbin/pkg_install/lib/ftpio.c  Sat Oct 26 12:06:04 2002 +0000
+++ b/usr.sbin/pkg_install/lib/ftpio.c  Sat Oct 26 12:37:00 2002 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: ftpio.c,v 1.45 2002/10/17 08:46:00 wiz Exp $   */
+/*     $NetBSD: ftpio.c,v 1.46 2002/10/26 12:37:00 hubertf Exp $       */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ftpio.c,v 1.45 2002/10/17 08:46:00 wiz Exp $");
+__RCSID("$NetBSD: ftpio.c,v 1.46 2002/10/26 12:37:00 hubertf Exp $");
 #endif
 
 /*
@@ -587,7 +587,7 @@
                matches=0;
                /* The following loop is basically the same as the readdir() loop
                 * in findmatchingname() */
-               while (fgets(filename, sizeof(buf), f)) {
+               while (fgets(filename, sizeof(filename), f)) {
 
                        /*
                         * We need to stripp of any .t[bg]z etc.



Home | Main Index | Thread Index | Old Index