Date: Sun, 06 Aug 2006 14:38:39 +0200 From: Wolfram Fenske <Wolfram.Fenske@Student.Uni-Magdeburg.DE> To: freebsd-current@freebsd.org Subject: Re: [head tinderbox] failure on amd64/amd64 Message-ID: <864pwqf38w.fsf@student.uni-magdeburg.de> In-Reply-To: <20060806082927.GA17297@engelschall.com> (Ralf S. Engelschall's message of "Sun, 6 Aug 2006 10:29:27 %2B0200") References: <20060805155548.EBE837302F@freebsd-current.sentex.ca> <20060805220746.U9314@woozle.rinet.ru> <20060805223658.X9314@woozle.rinet.ru> <20060806082927.GA17297@engelschall.com>
next in thread | previous in thread | raw e-mail | index | archive | help
"Ralf S. Engelschall" <rse@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?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?864pwqf38w.fsf>