diff options
author | Thomas Quinot <quinot@adacore.com> | 2005-12-09 18:20:28 +0100 |
---|---|---|
committer | Arnaud Charlet <charlet@gcc.gnu.org> | 2005-12-09 18:20:28 +0100 |
commit | 6677e9d9d3ebf59127fa58d9935613ad9a46a2b8 (patch) | |
tree | b89a6e3f4d5bdba4778d87f271c71d7cd7e54297 | |
parent | 59ecbd0bdfa8c9efd4aa2eed505ef72e6ec0ff2e (diff) | |
download | gcc-6677e9d9d3ebf59127fa58d9935613ad9a46a2b8.zip gcc-6677e9d9d3ebf59127fa58d9935613ad9a46a2b8.tar.gz gcc-6677e9d9d3ebf59127fa58d9935613ad9a46a2b8.tar.bz2 |
mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a command line switch overruns the...
2005-12-05 Thomas Quinot <quinot@adacore.com>
* mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a
command line switch overruns the output buffer.
From-SVN: r108298
-rw-r--r-- | gcc/ada/mlib-utl.adb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ada/mlib-utl.adb b/gcc/ada/mlib-utl.adb index f6512b4..91c6b9c 100644 --- a/gcc/ada/mlib-utl.adb +++ b/gcc/ada/mlib-utl.adb @@ -85,9 +85,7 @@ package body MLib.Utl is -- Make sure the Output buffer does not overflow - if Line_Length + 1 + Arguments (J)'Length > - Integer (Opt.Max_Line_Length) - then + if Line_Length + 1 + Arguments (J)'Length > Buffer_Max then Write_Eol; Line_Length := 0; end if; |