strlcpy, and strlcat are in the win32 build (main/strlcat.c main/strlcpy.c)
why dont you malloc a buffer that would fit the sprintf data, and then strlcpy
the size restriction?

-Jason

----- Original Message ----- 
From: "Andrei Zmievski" <[EMAIL PROTECTED]>
To: "Zeev Suraski" <[EMAIL PROTECTED]>
Cc: "php-dev mailinglist" <[EMAIL PROTECTED]>
Sent: Monday, March 12, 2001 9:09 AM
Subject: Re: [PHP-DEV] Re: [ZEND-ENGINE] cvs: Zend / zend_API.c zend_API.h


> On Mon, 12 Mar 2001, Zeev Suraski wrote:
> > No, it's really inaccessible :)  We managed to write the engine without 
> > needing it...  Is it impossible to replace it with other functions?
> 
> How do you sprintf to buffer of fixed size without possible overflow? I
> suppose I could use strlcat() to build the string piece by piece. Is
> that available in the engine?
> 
> -Andrei
> 
> When we eliminate the impossible, whatever remains,
> however improbable, must be true. -- Sherlock Holmes
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to