summaryrefslogtreecommitdiff
path: root/src/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cc')
-rw-r--r--src/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item.cc b/src/item.cc
index 7132103e..d46fba8b 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -198,7 +198,7 @@ void item_t::parse_tags(const char * p,
tag = string(q, len - index);
string_map::iterator i;
- string field(p + len + index);
+ string field(p + (q - buf.get()) + len);
trim(field);
if (by_value) {
bind_scope_t bound_scope(scope, *this);