From: Lukas Krickl Date: Sat, 11 Nov 2023 18:45:37 +0000 (+0100) Subject: Making sure that macro params will fit into the buffer X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=1f5030ee3b588b7f9fabaf5217ddabdeda91c8bc;p=ulas%2F.git Making sure that macro params will fit into the buffer --- 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