(process_command): Discard after first space in spec_version.

From-SVN: r2583
This commit is contained in:
Richard Stallman 1992-10-24 00:50:54 +00:00
parent f6adcfdc96
commit 2484b6d2a9
1 changed files with 5 additions and 1 deletions

View File

@ -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. */