From 5fea988239867d11c2c1a0aea4d2b5c73e80ea5c Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 2 Jun 2003 21:39:11 +0000 Subject: [PATCH] accept MS-DOS end-of-line characters --- panda/src/chancfg/chanparse.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/chancfg/chanparse.cxx b/panda/src/chancfg/chanparse.cxx index 3060ddb95f..6f03c943ee 100644 --- a/panda/src/chancfg/chanparse.cxx +++ b/panda/src/chancfg/chanparse.cxx @@ -35,7 +35,7 @@ INLINE std::string ChanReadLine(istream& is) { #endif /* BROKEN_EXCEPTIONS */ std::string S; std::getline(is, S); - size_t i = S.find_first_not_of(" /t/f/r/n"); + size_t i = S.find_first_not_of(" \t\f\r\n"); if ((i == std::string::npos) || (S[i] == ';')) return ChanReadLine(is); // all white space or comment if (i != 0)