Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hpc/stand/hpcboot/arm PR 50643 David Binderman: fix...



details:   https://anonhg.NetBSD.org/src/rev/0afdc05e55cf
branches:  trunk
changeset: 345490:0afdc05e55cf
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon May 30 17:11:56 2016 +0000

description:
PR 50643 David Binderman: fix conditional order

diffstat:

 sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1806baaf8b48 -r 0afdc05e55cf sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp
--- a/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp    Mon May 30 17:03:21 2016 +0000
+++ b/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp    Mon May 30 17:11:56 2016 +0000
@@ -1,4 +1,4 @@
-/* -*-C++-*-   $NetBSD: arm_console.cpp,v 1.7 2009/01/29 21:23:38 nonaka Exp $ */
+/* -*-C++-*-   $NetBSD: arm_console.cpp,v 1.8 2016/05/30 17:11:56 dholland Exp $       */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -77,7 +77,7 @@
        if (!setupMultibyteBuffer())
                return;
 
-       for (int i = 0; _bufm[i] != '\0' && i < CONSOLE_BUFSIZE; i++) {
+       for (int i = 0; i < CONSOLE_BUFSIZE && _bufm[i] != '\0'; i++) {
                char s = _bufm[i];
                if (s == '\n')
                        __putc('\r');



Home | Main Index | Thread Index | Old Index