Dangerous strcpy

Vladimir G. Ivanovic vgivanovic at comcast.net
Thu Jun 22 17:07:30 EDT 2006


On Thu, 2006-06-22 at 20:25 +0100, Glynn Clements wrote:
> For DNS resolution, the h_name field will typically contain the FQDN.
> 
> This isn't guaranteed to be less than either HOST_NAME_MAX or
> sysconf(_SC_HOST_NAME_MAX); those refer to hostnames returned from
> gethostname(), not the gethostby* functions.

You're right. (It says so in the comments, duh!) Thanks for the
correction. 

--- Vladimir

-- 
Vladimir G. Ivanovic <vgivanovic at comcast.net>




More information about the XEmacs-Beta mailing list