From ae6d9033a1c6b0b863b94c239c35a2df1a58948a Mon Sep 17 00:00:00 2001
From: Eelco Dolstra <e.dolstra@tudelft.nl>
Date: Wed, 4 May 2005 16:29:44 +0000
Subject: [PATCH] * The eof() state isn't guaranteed to be set non-lazily.  GCC
 2.95   compatibility fix.

---
 src/libutil/util.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 65c3b1539..574c2566b 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -688,5 +688,5 @@ bool string2Int(const string & s, int & n)
 {
     istringstream str(s);
     str >> n;
-    return str && str.eof();
+    return str && str.get() == EOF;
 }
-- 
GitLab