Subject: Re: gethostname and getdomainname
To: Christos Zoulas <christos@zoulas.com>
From: Ignatios Souvatzis <is@jocelyn.rhein.de>
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?

	-is