summaryrefslogtreecommitdiff
path: root/ham/fldigi/patches/patch-src_navtex_navtex.cxx
blob: 34d1b7fe78db4a50d18a9fd1ce8a7f50a0e15db3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-src_navtex_navtex.cxx,v 1.1 2013/05/06 14:49:32 joerg Exp $

--- src/navtex/navtex.cxx.orig	2013-05-03 14:31:34.000000000 +0000
+++ src/navtex/navtex.cxx
@@ -177,12 +177,12 @@ bool read_until_delim( std::istream & is
 	if( ! std::getline( istrm, parsed_str, delim ) ) return false ;
 	std::stringstream sstrm( parsed_str );
 	sstrm >> ref ;
-	return sstrm ;
+	return sstrm.good();
 }
 
 static bool read_until_delim( std::istream & istrm, std::string & ref )
 {
-	return std::getline( istrm, ref, delim );
+	return std::getline( istrm, ref, delim ).good();
 }
 
 class NavtexRecord