From a2e204aea97e7f844a5303f956c893579a89623e Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 1 Aug 2018 01:48:30 +1200 Subject: Fix buffer indexing error affecting alphanum tok value --- lexer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lexer.c b/lexer.c index 251afed..40dfd67 100644 --- a/lexer.c +++ b/lexer.c @@ -132,7 +132,7 @@ lex_alphanum(void) { i = 0; while (i < MAX_IDENT_LENGTH - 1 && isalnum(buf[column_number + i])) { - t.value[i] = buf[i]; + t.value[i] = buf[column_number + i]; i++; } t.value[i] = '\0'; -- cgit v1.1