From: Richard Stallman Date: Sat, 24 Oct 1992 00:50:54 +0000 (+0000) Subject: (process_command): Discard after first space in spec_version. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2484b6d2a9344f4d76be92efecabd482a1d5eb66;p=gcc.git (process_command): Discard after first space in spec_version. From-SVN: r2583 --- diff --git a/gcc/gcc.c b/gcc/gcc.c index 77b8e3e72a2..f1cf450865c 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1801,7 +1801,11 @@ process_command (argc, argv) n_switches = 0; n_infiles = 0; - spec_version = version_string; + + /* Default for -V is our version number, ending at first space. */ + spec_version = save_string (version_string, strlen (version_string)); + for (temp = spec_version; *temp && *temp != ' '; temp++); + if (*temp) *temp = '\0'; /* Set up the default search paths. */