Module Name:    src
Committed By:   ad
Date:           Thu Apr  2 19:43:11 UTC 2009

Modified Files:
        src/sys/kern: init_main.c

Log Message:
banner: fix a minor bug.


To generate a diff of this commit:
cvs rdiff -u -r1.386 -r1.387 src/sys/kern/init_main.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/init_main.c
diff -u src/sys/kern/init_main.c:1.386 src/sys/kern/init_main.c:1.387
--- src/sys/kern/init_main.c:1.386	Sun Mar 29 15:23:54 2009
+++ src/sys/kern/init_main.c	Thu Apr  2 19:43:11 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: init_main.c,v 1.386 2009/03/29 15:23:54 ad Exp $	*/
+/*	$NetBSD: init_main.c,v 1.387 2009/04/02 19:43:11 ad Exp $	*/
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.386 2009/03/29 15:23:54 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.387 2009/04/02 19:43:11 ad Exp $");
 
 #include "opt_ddb.h"
 #include "opt_ipsec.h"
@@ -932,7 +932,7 @@
 		snprintf(pbuf, sizeof(pbuf), "%s %s (%s)",
 		    ostype, osrelease, kernel_ident);
 		printf("%s", pbuf);
-		for (i = 80 - strlen(pbuf) - sizeof(notice); i != 0; i--)
+		for (i = 80 - strlen(pbuf) - sizeof(notice); i > 0; i--)
 			printf(" ");
 		printf("%s\n", notice);
 		pr = aprint_normal;

Reply via email to