OSDN Git Service

2007-04-20 Robert Dewar <dewar@adacore.com>
authorcharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jun 2007 10:21:11 +0000 (10:21 +0000)
committercharlet <charlet@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jun 2007 10:21:11 +0000 (10:21 +0000)
* a-tienio.adb (Get): Adjust buffer size to accomodate one extra
character

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125381 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/a-tienio.adb

index 0c07103..4361e2b 100644 (file)
@@ -6,7 +6,7 @@
 --                                                                          --
 --                                 B o d y                                  --
 --                                                                          --
---          Copyright (C) 1992-2006, Free Software Foundation, Inc.         --
+--          Copyright (C) 1992-2007, Free Software Foundation, Inc.         --
 --                                                                          --
 -- GNAT is free software;  you can  redistribute it  and/or modify it under --
 -- terms of the  GNU General Public License as published  by the Free Soft- --
@@ -42,7 +42,7 @@ package body Ada.Text_IO.Enumeration_IO is
    ---------
 
    procedure Get (File : File_Type; Item : out Enum) is
-      Buf    : String (1 .. Enum'Width);
+      Buf    : String (1 .. Enum'Width + 1);
       Buflen : Natural;
 
    begin