summaryrefslogtreecommitdiff
path: root/src/logTargets.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-02-22 17:19:41 +0000
committerChristian Pointner <equinox@anytun.org>2009-02-22 17:19:41 +0000
commit6eccfc5e6e99d8f72651b2d5a93075f804e3c7fd (patch)
tree87bcf303cf9b07a02b52ff37ec5cf9a7d0a69a71 /src/logTargets.cpp
parentadded log message at windows service stop (diff)
fixed log target string parser
Diffstat (limited to 'src/logTargets.cpp')
-rw-r--r--src/logTargets.cpp4
1 files changed, 3 insertions, 1 deletions
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<size_t>(s.tellg()) - 1 : 0);
s.get(buff, 100);
}
else