[head tinderbox] failure on amd64/amd64

Wolfram Fenske Wolfram.Fenske at Student.Uni-Magdeburg.DE
Sun Aug 6 12:40:20 UTC 2006


"Ralf S. Engelschall" <rse at FreeBSD.org> writes:

> On Sat, Aug 05, 2006, Dmitry Morozovsky wrote:
>
>> Or, maybe, the following would be less ugly:
>>
>> Index: optr.c
>> ===================================================================
>> RCS file: /home/ncvs/src/sbin/dump/optr.c,v
>> retrieving revision 1.33
>> diff -u -r1.33 optr.c
>> --- optr.c      5 Aug 2006 12:50:38 -0000       1.33
>> +++ optr.c      5 Aug 2006 18:38:21 -0000
>> @@ -209,14 +209,15 @@
>>                 mins = (deltat % 3600) / 60;
>>
>>                 tdone_str = ctime(&tdone);
>> +               tdone_str[(strlen(tdone_str) - 1)] = '\0';

Shouldn't this be

                   tdone_str[strlen(tdone_str)] = '\0';

or did you mean to truncate the last character?


Wolfram Fenske
-- 
A: Yes.
>Q: Are you sure?
>>A: Because it reverses the logical flow of conversation.
>>>Q: Why is top posting frowned upon?



More information about the freebsd-current mailing list