On Mon, Aug 22, 2011 at 5:35 PM, Alexandre Julliard <[email protected]> wrote: > Bernhard Loos <[email protected]> writes: > >> diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c >> index 284223e..3a7e93a 100644 >> --- a/tools/winegcc/winegcc.c >> +++ b/tools/winegcc/winegcc.c >> @@ -1326,6 +1326,7 @@ int main(int argc, char **argv) >> { >> case 'B': >> str = strdup(option_arg); >> + if (strendswith(str, "/")) str[strlen(str) - 1] = 0; > > Why would you want to append a slash to winebuild? > > -- > Alexandre Julliard > [email protected] >
Bash autocompletation. If you run winegcc manually, and autocomplete the -B argument to the winebuild dir, you end up with a / at the end. It's kinda hard to figure out, what goes wrong at this point.
