summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 1273972..53ab54c 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -378,8 +378,8 @@ static int slbt_exec_link_adjust_argument_vector(
*aarg++ = darg;
darg += strlen(dep);
- if (*--darg == '\n')
- *darg = 0;
+ if (darg[-1] == '\n')
+ darg[-1] = 0;
else
darg++;