diff --git a/src/token.c b/src/token.c index 77f8cb2..6f5e4d3 100644 --- a/src/token.c +++ b/src/token.c @@ -21,9 +21,8 @@ void str_array_free(str_array *l) { } bool str_array_append(str_array * l, const char * token, unsigned int len) { - R3_VECTOR(r3_iovec_t) *tks = &l->tokens; - r3_vector_reserve(NULL, tks, tks->size + 1); - r3_iovec_t *temp = tks->entries + tks->size++; + r3_vector_reserve(NULL, &l->tokens, l->tokens.size + 1); + r3_iovec_t *temp = l->tokens.entries + l->tokens.size++; memset(temp, 0, sizeof(*temp)); temp->base = token; temp->len = len;