From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.119.166 with SMTP id kv6mr2972175pab.19.1429944692075; Fri, 24 Apr 2015 23:51:32 -0700 (PDT) X-Received: by 10.140.95.135 with SMTP id i7mr20208qge.27.1429944691807; Fri, 24 Apr 2015 23:51:31 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!l13no9786147iga.0!news-out.google.com!k20ni1064qgd.0!nntp.google.com!j5no3609327qga.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 24 Apr 2015 23:51:31 -0700 (PDT) In-Reply-To: <67c2d992-bea4-4043-b7c3-38a2630d965b@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=87.240.246.10; posting-account=sDyr7QoAAAA7hiaifqt-gaKY2K7OZ8RQ NNTP-Posting-Host: 87.240.246.10 References: <47c7df1e-17c1-44cb-a455-43431f0d39cd@googlegroups.com> <67c2d992-bea4-4043-b7c3-38a2630d965b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <05f29613-aa64-47e2-bf91-35b29590a942@googlegroups.com> Subject: Re: Annoying behavior From: Laurent Injection-Date: Sat, 25 Apr 2015 06:51:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:25613 Date: 2015-04-24T23:51:31-07:00 List-Id: On Saturday, April 25, 2015 at 6:31:26 AM UTC+2, gautier...@hotmail.com wrote: > What is happenning is exactly what you have programmed: > Name (1 .. S'Length) := S; > > At some point Name is "Amikacine " > Then you have S = "Aug", so the 3 first letters are replaced and you get > "Augkacine ". If you stuff with spaces it will solve the problem. > Either with Name:= (others => ' '); before copying S or > Name(S'Length+1..Name'Last):= (others => ' '); before or after. > > HTH > _________________________ > Gautier's Ada programming > http://gautiersblog.blogspot.com/search/label/Ada > NB: follow the above link for a valid e-mail address Had this type of problem already just to tired/frustrated to see the cause especially since I got it displayed. Thanks