diff --git a/ovn/lib/lex.c b/ovn/lib/lex.c index 6f2b570f5c6..2f49af0e91e 100644 --- a/ovn/lib/lex.c +++ b/ovn/lib/lex.c @@ -89,7 +89,7 @@ lex_token_strcpy(struct lex_token *token, const char *s, size_t length) ? token->buffer : xmalloc(length + 1)); memcpy(token->s, s, length); - token->buffer[length] = '\0'; + token->s[length] = '\0'; } void