summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_execute.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_execute.c b/src/logic/slbt_exec_execute.c
index a43013b..7f9389b 100644
--- a/src/logic/slbt_exec_execute.c
+++ b/src/logic/slbt_exec_execute.c
@@ -154,7 +154,11 @@ int slbt_exec_execute(const struct slbt_driver_ctx * dctx)
return SLBT_NESTED_ERROR(dctx);
} else if (ret == 1) {
- sprintf(wrapper,"%s.exe.wrapper",exeprog);
+ if (slbt_snprintf(
+ wrapper,sizeof(wrapper),
+ "%s.exe.wrapper",exeprog) < 0)
+ return SLBT_BUFFER_ERROR(dctx);
+
exeref = *parg;
*aarg++ = wrapper;
} else {