Module Name:    src
Committed By:   christos
Date:           Fri Mar 11 18:39:03 UTC 2016

Modified Files:
        src/usr.bin/xstr: xstr.c

Log Message:
PR/50953: David Binderman: Fix misplaced paren


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.bin/xstr/xstr.c

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

Modified files:

Index: src/usr.bin/xstr/xstr.c
diff -u src/usr.bin/xstr/xstr.c:1.25 src/usr.bin/xstr/xstr.c:1.26
--- src/usr.bin/xstr/xstr.c:1.25	Fri Sep 16 11:39:31 2011
+++ src/usr.bin/xstr/xstr.c	Fri Mar 11 13:39:03 2016
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 19
 #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 @@ fgetNUL(char *obuf, int rmdr, FILE *file
 
 	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;

Reply via email to