summaryrefslogtreecommitdiff
path: root/src/logTargets.cpp
diff options
context:
space:
mode:
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