Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Aug 2006 16:42:25 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        freebsd-current@freebsd.org
Subject:   Re: [head tinderbox] failure on amd64/amd64
Message-ID:  <20060806164147.P45264@woozle.rinet.ru>
In-Reply-To: <864pwqf38w.fsf@student.uni-magdeburg.de>
References:  <20060805155548.EBE837302F@freebsd-current.sentex.ca> <20060805220746.U9314@woozle.rinet.ru> <20060805223658.X9314@woozle.rinet.ru> <20060806082927.GA17297@engelschall.com> <864pwqf38w.fsf@student.uni-magdeburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 6 Aug 2006, Wolfram Fenske wrote:

WF> >> Index: optr.c
WF> >> ===================================================================
WF> >> RCS file: /home/ncvs/src/sbin/dump/optr.c,v
WF> >> retrieving revision 1.33
WF> >> diff -u -r1.33 optr.c
WF> >> --- optr.c      5 Aug 2006 12:50:38 -0000       1.33
WF> >> +++ optr.c      5 Aug 2006 18:38:21 -0000
WF> >> @@ -209,14 +209,15 @@
WF> >>                 mins = (deltat % 3600) / 60;
WF> >>
WF> >>                 tdone_str = ctime(&tdone);
WF> >> +               tdone_str[(strlen(tdone_str) - 1)] = '\0';
WF> 
WF> Shouldn't this be
WF> 
WF>                    tdone_str[strlen(tdone_str)] = '\0';
WF> 
WF> or did you mean to truncate the last character?

The latter - and this was the original rse@'s intention AFAICS.


Sincerely,
D.Marck                                     [DM5020, MCK-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060806164147.P45264>