From: Thomas Quinot Date: Fri, 9 Dec 2005 17:20:28 +0000 (+0100) Subject: mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a command line switch... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6677e9d9d3ebf59127fa58d9935613ad9a46a2b8;p=gcc.git mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a command line switch overruns the... 2005-12-05 Thomas Quinot * mlib-utl.adb (Ar): Use Output.Buffer_Max to determine whether a command line switch overruns the output buffer. From-SVN: r108298 --- diff --git a/gcc/ada/mlib-utl.adb b/gcc/ada/mlib-utl.adb index f6512b494bf..91c6b9c3e03 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;