Re: Building lftp 3.5.10 with GCC 3.4.3 on AIX 4.3.3

Albert Chin <[email protected]> Thu, 10 May 2007 10:10:11 -0500
Newsgroups gmane.network.lftp.devel
Message-ID <[email protected]>
On Thu, May 10, 2007 at 04:14:12PM +0200, Andre Noll wrote:
> On 10:51, Albert Chin wrote:
> > Http.cc:639: warning: int format, size_t arg (arg 3)
> > Http.cc:662: warning: int format, size_t arg (arg 3)
> > 
> > The problematic lines are:
> >   Send("Content-Length: %d\r\n",strlen(allprop));
> >   Send("Content-Length: %d\r\n",strlen(allprop));
> > 
> > As strlen() returns a size_t, should we change this to %ld or cast
> > strlen() with (int)?
> 
> Why not use %zd?

It doesn't appear to be portable. For example, it doesn't work on
Solaris 9 and below.

-- 
albert chin ([email protected])