diff options
author | midipix <writeonce@midipix.org> | 2018-06-27 20:31:19 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-06-29 01:37:41 -0400 |
commit | f7d56b966bc461368d39ac00e6cfb881f22af1c5 (patch) | |
tree | e6951881a83ca9f74531447ad1f0267ae286dde8 /src/helper | |
parent | 0f9f9744d71f902054aa844bd2f136d8307a13dc (diff) | |
download | slibtool-f7d56b966bc461368d39ac00e6cfb881f22af1c5.tar.bz2 slibtool-f7d56b966bc461368d39ac00e6cfb881f22af1c5.tar.xz |
slbt_dump_machine_child(): fix argv[0] computation logic.
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/slbt_dump_machine.c | 2 |
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; |