Only use sysconf() if HOST_NAME_MAX is undefined
On some systsems sysconf() can return a very large value, unsuitable for use with malloc(). Only use sysconf() if HOST_NAME_MAX isn't avalable.
parent
873c84f0
Please register or sign in to comment