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.9 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/223e3dc208b9
branches:  netbsd-1-6
changeset: 528115:223e3dc208b9
user:      tv <tv%NetBSD.org@localhost>
date:      Thu Jun 27 17:22:03 2002 +0000

description:
Pull up revision 1.9 (requested by yamt in ticket #385):
check return value of snprintf correctly.

diffstat:

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

diffs (26 lines):

diff -r 857d32209990 -r 223e3dc208b9 usr.sbin/pkg_install/lib/exec.c
--- a/usr.sbin/pkg_install/lib/exec.c   Thu Jun 27 09:01:19 2002 +0000
+++ b/usr.sbin/pkg_install/lib/exec.c   Thu Jun 27 17:22:03 2002 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: exec.c,v 1.8 2001/09/24 13:22:37 wiz Exp $     */
+/*     $NetBSD: exec.c,v 1.8.2.1 2002/06/27 17:22:03 tv Exp $  */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: exec.c,v 1.6 1997/10/08 07:47:50 charnier Exp";
 #else
-__RCSID("$NetBSD: exec.c,v 1.8 2001/09/24 13:22:37 wiz Exp $");
+__RCSID("$NetBSD: exec.c,v 1.8.2.1 2002/06/27 17:22:03 tv Exp $");
 #endif
 #endif
 
@@ -52,7 +52,7 @@
        }
 
        va_start(args, fmt);
-       if (vsnprintf(cmd, maxargs, fmt, args) > maxargs) {
+       if (vsnprintf(cmd, maxargs, fmt, args) >= maxargs) {
                warnx("vsystem args are too long");
                va_end(args);
                return 1;



Home | Main Index | Thread Index | Old Index