diff options
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/windres.c | 8 |
2 files changed, 13 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 212fd64..fbd14f1 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2020-11-27 Nick Clifton <nickc@redhat.com> + + PR 26865 + * windres.c (main): If the preprocessor name includes spaces, + ensure that it is quoted. + 2020-11-27 Jozef Lawrynowicz <jozef.l@mittosystems.com> * testsuite/lib/binutils-common.exp (supports_noinit_section): New. diff --git a/binutils/windres.c b/binutils/windres.c index 5c83dab..df3e01f 100644 --- a/binutils/windres.c +++ b/binutils/windres.c @@ -885,7 +885,13 @@ main (int argc, char **argv) break; case OPTION_PREPROCESSOR: - preprocessor = optarg; + if (strchr (optarg, ' ')) + { + if (asprintf (& preprocessor, "\"%s\"", optarg) == -1) + preprocessor = optarg; + } + else + preprocessor = optarg; break; case OPTION_PREPROCESSOR_ARG: |