gethostbyname() failed with buffer overflow??

Hi!

I have a problem with each program that calls gethostbyname in order to
obtain self IP Address.

Each time gethostbyname called, it failes immidiatly and hostname of
current machine erased:

For example:

hostname
fel_qnx



run program with a call to gethostbyname
failed!



hostname
1

Please advise.
Thank you,
Felix.

Felix <fshedrinsky@emation.com> wrote:

Hi!

I have a problem with each program that calls gethostbyname in order to
obtain self IP Address.

Each time gethostbyname called, it failes immidiatly and hostname of
current machine erased:

For example:

hostname
fel_qnx

run program with a call to gethostbyname
failed!

Can you cut this example program to the minimum that causes the failure,
then post the source?

-David


hostname
1

Please advise.
Thank you,
Felix.