libtiff: * tools/ppm2tiff.c (main): While case for parsing comment line

https://github.com/libsdl-org/libtiff/commit/3f22048b555e39966b9d070766bfbefa22f423a8

From 3f22048b555e39966b9d070766bfbefa22f423a8 Mon Sep 17 00:00:00 2001
From: Bob Friesenhahn <[EMAIL REDACTED]>
Date: Sat, 10 Apr 2010 19:22:46 +0000
Subject: [PATCH] * tools/ppm2tiff.c (main): While case for parsing comment
 line requires extra parenthesis to work as expected.  Reported by Thomas
 Sinclair.

---
 ChangeLog        | 6 ++++++
 tools/ppm2tiff.c | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index a376dadc..a23ebfc1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-10  Bob Friesenhahn  <bfriesen@simple.dallas.tx.us>
+
+	* tools/ppm2tiff.c (main): While case for parsing comment line
+	requires extra parenthesis to work as expected.  Reported by
+	Thomas Sinclair.
+
 2010-02-22  Lee Howard  <faxguy@howardsilvan.com>
 
 	* libtiff/tif_jpeg.c: Do not generate a JPEGTables tag when creating
diff --git a/tools/ppm2tiff.c b/tools/ppm2tiff.c
index 8c2749f4..06377bd4 100644
--- a/tools/ppm2tiff.c
+++ b/tools/ppm2tiff.c
@@ -1,4 +1,4 @@
-/* $Id: ppm2tiff.c,v 1.13 2006-04-20 12:36:23 dron Exp $ */
+/* $Id: ppm2tiff.c,v 1.13.2.1 2010-04-10 19:22:46 bfriesen Exp $ */
 
 /*
  * Copyright (c) 1991-1997 Sam Leffler
@@ -169,7 +169,7 @@ main(int argc, char* argv[])
 		if (c == '#') {
 			do {
 			    c = fgetc(in);
-			} while(!strchr("\r\n", c) || feof(in));
+			} while(!(strchr("\r\n", c) || feof(in)));
 			continue;
 		}