Re: gethostbyname call with 0 length arg

2006-02-03 Thread Phil Goss
chrieb Phil Goss: There seems to be a check in the gethostbyname for a NULL arg name ... if(!name) ... But no check for ... if(!strlen(name)) Alexandre changed "strlen(xxx) > 0" in my first Patch to xxx[0] So for your code above, simple change: if(!name) { to if((!name) &

Re: gethostbyname call with 0 length arg

2006-02-03 Thread Phil Goss
This is what seems to have worked for me if(!name || !strlen(name)) { On Fri, 03 Feb 2006 19:23:22 +0100, Christer Palm <[EMAIL PROTECTED]> wrote: Detlef Riekenberg wrote: if((!name) && (name[0])) { Do you really mean that? "if name is 0, then dereference name"? -- Christer Palm

gethostbyname call with 0 length arg

2006-01-29 Thread Phil Goss
Hi, Is it a bug in the WINE gethostbyname (WS_gethostbyname) implementation, where if the arg name is of string length 0, then it returns unsuccessful. I have experience this issue with a Windows program (Onkyo Nettune) where the hostname passed to gethostbyname is of length 0. (This seems