Source-Changes-HG archive

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

[src/netbsd-1-6]: src/usr.sbin/pkg_install/lib Pull up revision 1.39 (request...



details:   https://anonhg.NetBSD.org/src/rev/2ea2ac620396
branches:  netbsd-1-6
changeset: 528499:2ea2ac620396
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sun Jul 21 04:35:49 2002 +0000

description:
Pull up revision 1.39 (requested by lukem):
- use snprintf and strlcpy instead of strcpy, strcat and sprintf in some place.
- remove a unneeded strcpy.

diffstat:

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

diffs (23 lines):

diff -r 773fe4f51d37 -r 2ea2ac620396 usr.sbin/pkg_install/lib/ftpio.c
--- a/usr.sbin/pkg_install/lib/ftpio.c  Sun Jul 21 04:35:40 2002 +0000
+++ b/usr.sbin/pkg_install/lib/ftpio.c  Sun Jul 21 04:35:49 2002 +0000
@@ -1,8 +1,8 @@
-/*     $NetBSD: ftpio.c,v 1.35.2.1 2002/06/28 12:42:15 lukem Exp $     */
+/*     $NetBSD: ftpio.c,v 1.35.2.2 2002/07/21 04:35:49 lukem Exp $     */
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ftpio.c,v 1.35.2.1 2002/06/28 12:42:15 lukem Exp $");
+__RCSID("$NetBSD: ftpio.c,v 1.35.2.2 2002/07/21 04:35:49 lukem Exp $");
 #endif
 
 /*
@@ -615,7 +615,7 @@
        if (best[0] != '\0') {
                if (Verbose)
                        printf("best match: '%s%s'\n", base, best);
-               sprintf(expandedurl, "%s%s", base, best);
+               snprintf(expandedurl, FILENAME_MAX, "%s%s", base, best);
        }
     }
 



Home | Main Index | Thread Index | Old Index