summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-19 20:17:53 -0400
committermidipix <writeonce@midipix.org>2016-04-19 20:17:53 -0400
commit51b7dfc891504bbec7d7682fa15858ef0c5b4f4e (patch)
tree3a2ad65e16c0713024c8c366383a80d31564c6e1
parent0364b59d5b222425faf725ba52aef155e8a9ecc1 (diff)
downloadslibtool-51b7dfc891504bbec7d7682fa15858ef0c5b4f4e.tar.bz2
slibtool-51b7dfc891504bbec7d7682fa15858ef0c5b4f4e.tar.xz
slbt_exec_link_adjust_argument_vector: depsmeta->args: this is the null terminator!
-rw-r--r--src/logic/slbt_exec_link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index fc6eab9..6f1e4a1 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -324,7 +324,8 @@ static int slbt_exec_link_adjust_argument_vector(
while (fscanf(fdeps,"%s\n",darg) == 1) {
*aarg++ = darg;
- darg += strlen(darg) + sizeof('\0');
+ darg += strlen(darg);
+ darg++;
}
if (ferror(fdeps)) {