From de68bc3bf49ad32000691b33d6fa09de36e5a8ec Mon Sep 17 00:00:00 2001 From: Bernhard Loos Date: Mon, 22 Aug 2011 10:40:10 +0200 Subject: [PATCH] winegcc: Support a trailing / in paths to winebuild. --- tools/winegcc/winegcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c index 284223eec5e..3a7e93a76e7 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; if (strendswith(str, "/tools/winebuild")) { char *objdir = strdup(str); @@ -1334,7 +1335,6 @@ int main(int argc, char **argv) /* don't pass it to the compiler, this generates warnings */ raw_compiler_arg = raw_linker_arg = 0; } - if (strendswith(str, "/")) str[strlen(str) - 1] = 0; if (!opts.prefix) opts.prefix = strarray_alloc(); strarray_add(opts.prefix, str); break; -- 2.11.4.GIT