summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_ctx.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 6e794f8..57e0c88 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -173,7 +173,8 @@ int slbt_get_exec_ctx(
ch[-2] = '\0';
ch--;
} else if (ictx->ctx.csrc) {
- if ((ch = strrchr(ictx->ctx.lbasename,'.'))) {
+ if ((mark = strrchr(ictx->ctx.lbasename,'.'))) {
+ ch = mark;
*++ch = 'o';
*++ch = '\0';
ch++;
@@ -228,8 +229,8 @@ int slbt_get_exec_ctx(
ictx->ctx.ltobjname = ch;
strcpy(ch,ictx->ctx.aobjname);
- if ((ch = strrchr(ch,'.')))
- ch += sprintf(ch,"%s",".lo")
+ if ((mark = strrchr(ch,'.')))
+ ch = mark + sprintf(mark,"%s",".lo")
+ sizeof('\0');
}