aboutsummaryrefslogtreecommitdiff
path: root/src/lexer.c
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-08-09 12:16:04 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2025-08-09 12:16:04 +0530
commit1acd74f76716c078015700b04c5e1c7b1b4f7556 (patch)
treeef18042a3631ecda0cf11f6affd184e50895f931 /src/lexer.c
parent66c403c79e64dbe96fc080ff74e87db2102f93f3 (diff)
lexer,engine: use strlen(content) instead of length
I can't remember why I added length instead of using strlen(content). If this breaks anything it would be a pain to debug. In my little testing though, it seems to be working fine.
Diffstat (limited to 'src/lexer.c')
-rw-r--r--src/lexer.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lexer.c b/src/lexer.c
index 8947687..be5f8e6 100644
--- a/src/lexer.c
+++ b/src/lexer.c
@@ -191,8 +191,6 @@ lexer_handle_contentfor(directive_t *directive,
}
operands->content = strndup(buffer, new_match->offset);
- operands->length
- = match->offset + match->length + new_match->offset + new_match->length;
free(new_match);
directive->operands = operands;