diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-07 20:49:41 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-05-07 20:49:41 +0000 |
commit | 623feb20b4a4ea1222a7ffc2cf65db96b794d5a2 (patch) | |
tree | e6db0b9a566e4420806fa7ce2f02085d2ebb4576 /gcc/gcc.c | |
parent | 3b006e2526ac3313fad9ec38a5f3e3436a127ed1 (diff) | |
download | gcc-623feb20b4a4ea1222a7ffc2cf65db96b794d5a2.tar.gz |
Fix specs file problem reported by Nathan Myers.
* gcc.c (read_specs): Handle missing blank line at end of specs file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@19622 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index 1941aed2751..f2efe569434 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1557,8 +1557,8 @@ read_specs (filename, main_p) fatal ("specs file malformed after %d characters", p - buffer); p1 = p; - /* Find next blank line. */ - while (*p1 && !(*p1 == '\n' && p1[1] == '\n')) + /* Find next blank line or end of string. */ + while (*p1 && !(*p1 == '\n' && (p1[1] == '\n' || p1[1] == '\0'))) p1++; /* Specs end at the blank line and do not include the newline. */ |