aboutsummaryrefslogtreecommitdiff
path: root/src/token.c
diff options
context:
space:
mode:
authorc2024-01-28 21:43:37 -0500
committerc2024-01-28 21:43:37 -0500
commitca20ff4f4d0ac63856e538f9f4cef97197bf6465 (patch)
treeba8886c8832e082332a284e3b18fb0e4bbce3d05 /src/token.c
parent422606d8b3cc6fba74f97af46f0378fc274d60ad (diff)
Fixed buffer-overflow.
Diffstat (limited to 'src/token.c')
-rw-r--r--src/token.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/token.c b/src/token.c
index bcb4c18..3479a86 100644
--- a/src/token.c
+++ b/src/token.c
@@ -28,6 +28,8 @@ void token_destroy(token_t* token) {
token_t* token_last(token_t* token) {
token_t* t;
+ t = token;
+
while (t->nxt) {
t = t->nxt;
}