Re: [bmd@mp3.com: Re: doublecheck patches .]

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 13 Dec 2000 17:24:55 +0100

Duane Wessels wrote:

> The commit log for this change says
>
> char *me = getMyHostname() breaks strtok on irix-6?
>
> Not very informative. Maybe getMyHostname() used strtok() in the past
> and that trashed the later call in parse_peer().
>
> It would be good if someone has access to an IRIX-6.x box and
> could verify that the above change no longer breaks the
> strtok call later.

From the Linux/GNU strtok man page:

BUGS
       Never use this function. ...

and I partly agree with this, "Never use this function together with
other library calls or over long timespans or crossing function
boundaries, only use it in short isolated and well defined
locations/blocks".

/Henrik
Received on Wed Dec 13 2000 - 09:58:23 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:04 MST