Subject: Re: gethostname and getdomainname
To: Christos Zoulas <>
From: Ignatios Souvatzis <>
List: tech-userlevel
Date: 11/18/1999 22:08:35
Here are my gethostname.c and getdomainname.c diffs.

The change is to check for error && errno == ENOMEM, and restore errno
in this case, and return 0.

(As no standard mandates null-terminating, portable programs have to check
for the last byte != 0, or allocate one more and initialize that to 0, or
to use a maximum size output routine, anyway.)

Last comments?