Module Name: src Committed By: dholland Date: Mon May 30 17:11:56 UTC 2016
Modified Files: src/sys/arch/hpc/stand/hpcboot/arm: arm_console.cpp Log Message: PR 50643 David Binderman: fix conditional order To generate a diff of this commit: cvs rdiff -u -r1.7 -r1.8 src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp diff -u src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp:1.7 src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp:1.8 --- src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp:1.7 Thu Jan 29 21:23:38 2009 +++ src/sys/arch/hpc/stand/hpcboot/arm/arm_console.cpp Mon May 30 17:11:56 2016 @@ -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 @@ ARMConsole::print(const TCHAR *fmt, ...) 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');