summaryrefslogtreecommitdiff
path: root/test/tokeniser3.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/tokeniser3.c')
-rw-r--r--test/tokeniser3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tokeniser3.c b/test/tokeniser3.c
index 86f079b..b514256 100644
--- a/test/tokeniser3.c
+++ b/test/tokeniser3.c
@@ -451,12 +451,12 @@ hubbub_error token_handler(const hubbub_token *token, void *pw)
hubbub_token t;
t.type = HUBBUB_TOKEN_CHARACTER;
- t.data.character.ptr += len;
- t.data.character.len -= len;
+ t.data.character.ptr = token->data.character.ptr + len;
+ t.data.character.len = token->data.character.len - len;
ctx->char_off = 0;
- token_handler(&t, pw);
+ return token_handler(&t, pw);
} else if (strlen(expstr + ctx->char_off) >
token->data.character.len) {
/* Tokeniser output only contained part of the data