Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xstr PR/50953: David Binderman: Fix misplaced paren



details:   https://anonhg.NetBSD.org/src/rev/ad920292e054
branches:  trunk
changeset: 344060:ad920292e054
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Mar 11 18:39:03 2016 +0000

description:
PR/50953: David Binderman: Fix misplaced paren

diffstat:

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

diffs (27 lines):

diff -r fe1bc650fe6f -r ad920292e054 usr.bin/xstr/xstr.c
--- a/usr.bin/xstr/xstr.c       Fri Mar 11 18:38:25 2016 +0000
+++ b/usr.bin/xstr/xstr.c       Fri Mar 11 18:39:03 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xstr.c,v 1.25 2011/09/16 15:39:31 joerg Exp $  */
+/*     $NetBSD: xstr.c,v 1.26 2016/03/11 18:39:03 christos Exp $       */
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)xstr.c     8.1 (Berkeley) 6/9/93";
 #else
-__RCSID("$NetBSD: xstr.c,v 1.25 2011/09/16 15:39:31 joerg Exp $");
+__RCSID("$NetBSD: xstr.c,v 1.26 2016/03/11 18:39:03 christos Exp $");
 #endif
 #endif /* not lint */
 
@@ -390,7 +390,7 @@
 
        c = 0;  /* XXXGCC -Wuninitialized */
 
-       while (--rmdr > 0 && (c = xgetc(file) != 0 && c != EOF))
+       while (--rmdr > 0 && (c = xgetc(file)) != 0 && c != EOF)
                *buf++ = c;
        *buf++ = 0;
        return (feof(file) || ferror(file)) ? 0 : 1;



Home | Main Index | Thread Index | Old Index