Closed mmitch closed 3 years ago
Should be fixed in commit dfa1218c6f1db44da7eab7b4a0e2bea0c2c728f0 but the xgbsplay
branch is not yet merged to master (see issue #22).
Because of a rebase the commit in question has changed to 9b1a56e5736f96260f63ab85f5eb5b99d50bc79c.
The xgbsplay
branch has been merged to master and so this issue is fixed.
parseopts()
ingbsplay.c
setsmyname = *argv[0];
and uses the variable later for the binary name in the help text shown byusage()
. In the xgbsplay branch,myname
will also be used for theversion()
output (-V
parameter).If you run gbsplay from your local build directory,
myname
will contain the directory and print it. This does not look very good:Use something like
basedir()
to remove the path frommyname
or just advance the pointer behind the last slash inargv[0]
so no additional target buffer is needed.