From 6eccfc5e6e99d8f72651b2d5a93075f804e3c7fd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 22 Feb 2009 17:19:41 +0000 Subject: fixed log target string parser --- src/logTargets.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/logTargets.cpp') diff --git a/src/logTargets.cpp b/src/logTargets.cpp index 226dce2..9bb4cfc 100644 --- a/src/logTargets.cpp +++ b/src/logTargets.cpp @@ -94,7 +94,9 @@ LogTarget* LogTargetList::add(std::string conf) char buff[100]; if(s.good()) { - s.ignore(1); + s.get(buff[0]); + if(buff[0] != ',') + throw syntax_error(conf, (s.tellg() > 0) ? static_cast(s.tellg()) - 1 : 0); s.get(buff, 100); } else -- cgit v1.2.3