summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/logic/slbt_exec_execute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_execute.c b/src/logic/slbt_exec_execute.c
index 33f7858..277bb30 100644
--- a/src/logic/slbt_exec_execute.c
+++ b/src/logic/slbt_exec_execute.c
@@ -45,7 +45,8 @@ int slbt_exec_execute(
script = ectx->cargv[1];
/* wrapper */
- if ((size_t)snprintf(wrapper,sizeof(wrapper),"%s.exe.wrapper",
+ if ((size_t)snprintf(wrapper,sizeof(wrapper),"%s%s.exe.wrapper",
+ (script[0] == '/') ? "" : "./",
script)
>= sizeof(wrapper)) {
slbt_free_exec_ctx(actx);