summaryrefslogtreecommitdiffhomepage
path: root/src/logic/slbt_exec_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic/slbt_exec_ctx.c')
-rw-r--r--src/logic/slbt_exec_ctx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 5a61e24..6bae3fd 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -84,6 +84,9 @@ static struct slbt_exec_ctx_impl * slbt_exec_ctx_alloc(
else if ((csrc = slbt_source_file(dctx->cctx->cargv)))
size += 4*strlen(csrc);
+ /* buffer size (.libs/%.o, pessimistic) */
+ size += argc * strlen(".libs/");
+
/* alloc */
if (!(args = malloc(size)))
return 0;