summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-05-20 13:46:42 -0400
committermidipix <writeonce@midipix.org>2016-05-20 13:46:42 -0400
commit378bccc03ddf06c5f4cec7fa2a9c687fd3d2b6f4 (patch)
tree86981781e40c6d984672ccee5544e0e2749bd04a /src
parentec61519fcbe346bfada5ce8d652453c6bc5981a9 (diff)
downloadslibtool-378bccc03ddf06c5f4cec7fa2a9c687fd3d2b6f4.tar.bz2
slibtool-378bccc03ddf06c5f4cec7fa2a9c687fd3d2b6f4.tar.xz
slbt_exec_link_adjust_argument_vector(): account for newline arg termination.
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++;