Re: [head tinderbox] failure on amd64/amd64

From: Dmitry Morozovsky <marck_at_rinet.ru>
Date: Sun, 6 Aug 2006 13:37:21 +0400 (MSD)
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 ***
------------------------------------------------------------------------
Received on Sun Aug 06 2006 - 07:37:23 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:58 UTC