[head tinderbox] failure on amd64/amd64

Dmitry Morozovsky marck at rinet.ru
Sun Aug 6 09:37:23 UTC 2006


On Sun, 6 Aug 2006, Ralf S. Engelschall wrote:

RSE> > DM> It seems at least on amd64 size_t (strlen() result) is not int.
RSE> >
RSE> > Or, maybe, the following would be less ugly:

RSE> >                 tdone_str = ctime(&tdone);
RSE> > +               tdone_str[(strlen(tdone_str) - 1)] = '\0';

Well, next thought: ctime(3) described as POSIX.1 function having fixed length 
of 26 chars. Is it safe and standards-compliant to save strlen(3) call and just 
use tdone_str[24] = '\0' ?


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