From 1f5030ee3b588b7f9fabaf5217ddabdeda91c8bc Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Sat, 11 Nov 2023 19:45:37 +0100 Subject: [PATCH] Making sure that macro params will fit into the buffer --- src/ulas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ulas.c b/src/ulas.c index cf1d2fc..aae8605 100644 --- a/src/ulas.c +++ b/src/ulas.c @@ -350,6 +350,7 @@ char *ulas_preprocexpand(struct ulas_preproc *pp, const char *raw_line, } if (!tocat) { + ulas_strensr(&pp->line, valread + 1); strncat(pp->line.buf, val - valread, valread); } else { // make sure to include leading white space -- 2.30.2