On Wed, May 30, 2007 at 02:50:05PM +0200, Lionel Elie Mamane wrote:
> On Tue, May 29, 2007 at 07:10:51PM +0200, Alain Bench wrote:
>>  On Saturday, May 26, 2007 at 20:39:04 +0200, Lionel Elie Mamane wrote:

>>> The attached patch changes all calls to strtok to the reentrant
>>> strtok_r, fixing that problem.

>>     But strtok_r() doesn't exist on some platforms, so I fear this
>> can't be a general solution.

> IMHO, then fundamentally, the only general solution is:

>  - don't use strtok (...)

>  OR

>  - ship a private copy of strtok_r or a similarly reentrant
>    function. I suppose that autoconf can check for availability of
>    strtok_r and #define HAVE_STRTOK_R, and things like that (with
>    AC_REPLACE_FUNCS?).

And mutt being GPLed, it can just ship a copy of strtok_r from the
GNU libc. Or from *BSD.

-- 
Lionel



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to