Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.sbin/grfconfig Pull up revision 1.10 (requested by ...



details:   https://anonhg.NetBSD.org/src/rev/735c26afa092
branches:  netbsd-1-5
changeset: 490578:735c26afa092
user:      he <he%NetBSD.org@localhost>
date:      Sat Feb 03 18:19:17 2001 +0000

description:
Pull up revision 1.10 (requested by is):
  Fix parameter file checking.  Fixes PR#11865.

diffstat:

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

diffs (27 lines):

diff -r 293beaafbfa8 -r 735c26afa092 usr.sbin/grfconfig/grfconfig.c
--- a/usr.sbin/grfconfig/grfconfig.c    Sat Feb 03 18:17:21 2001 +0000
+++ b/usr.sbin/grfconfig/grfconfig.c    Sat Feb 03 18:19:17 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grfconfig.c,v 1.9 1997/11/20 10:35:15 veego Exp $      */
+/*     $NetBSD: grfconfig.c,v 1.9.10.1 2001/02/03 18:19:17 he Exp $    */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -43,7 +43,7 @@
 #endif /* not lint */
 
 #ifndef lint
-__RCSID("$NetBSD: grfconfig.c,v 1.9 1997/11/20 10:35:15 veego Exp $");
+__RCSID("$NetBSD: grfconfig.c,v 1.9.10.1 2001/02/03 18:19:17 he Exp $");
 #endif /* not lint */
 
 #include <sys/file.h>
@@ -172,7 +172,7 @@
                                cps[i + 1] = strtok(NULL, " \b\t\r\n");
                        cps[i] = NULL;
 
-                       if (cps[13] == NULL) {
+                       if (i < 14) {
                                printf("grfconfig: too few values in mode "
                                    "definition file:\n %s\n", obuf);
                                return (1);



Home | Main Index | Thread Index | Old Index