[head tinderbox] failure on amd64/amd64

Dmitry Morozovsky marck at rinet.ru
Sun Aug 6 12:42:26 UTC 2006


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 at rinet.ru ***
------------------------------------------------------------------------


More information about the freebsd-current mailing list