summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-06-27 20:31:19 -0400
committermidipix <writeonce@midipix.org>2018-06-29 01:37:41 -0400
commitf7d56b966bc461368d39ac00e6cfb881f22af1c5 (patch)
treee6951881a83ca9f74531447ad1f0267ae286dde8
parent0f9f9744d71f902054aa844bd2f136d8307a13dc (diff)
downloadslibtool-f7d56b966bc461368d39ac00e6cfb881f22af1c5.tar.bz2
slibtool-f7d56b966bc461368d39ac00e6cfb881f22af1c5.tar.xz
slbt_dump_machine_child(): fix argv[0] computation logic.
-rw-r--r--src/helper/slbt_dump_machine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/slbt_dump_machine.c b/src/helper/slbt_dump_machine.c
index 443537d..02f281c 100644
--- a/src/helper/slbt_dump_machine.c
+++ b/src/helper/slbt_dump_machine.c
@@ -23,7 +23,7 @@ static void slbt_dump_machine_child(
char * compiler;
char * argv[3];
- if ((compiler = strchr(program,'/')))
+ if ((compiler = strrchr(program,'/')))
compiler++;
else
compiler = program;