summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_ctx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 5f08526..39fa26c 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -281,7 +281,9 @@ int slbt_get_exec_ctx(
ictx->ctx.lafilename = ch;
ch += sprintf(ch,"%s%s%s.la",
ictx->ctx.ldirname,
- dctx->cctx->settings.dsoprefix,
+ (dctx->cctx->drvflags & SLBT_DRIVER_MODULE)
+ ? ""
+ : dctx->cctx->settings.dsoprefix,
dctx->cctx->libname)
+ sizeof('\0');
@@ -290,7 +292,9 @@ int slbt_get_exec_ctx(
ictx->ctx.dsofilename = ch;
ch += sprintf(ch,"%s%s%s%s",
ictx->ctx.ldirname,
- dctx->cctx->settings.dsoprefix,
+ (dctx->cctx->drvflags & SLBT_DRIVER_MODULE)
+ ? ""
+ : dctx->cctx->settings.dsoprefix,
dctx->cctx->libname,
dctx->cctx->settings.dsosuffix)
+ sizeof('\0');