Curl_ntlm_create_type3_message: Tidied up the use of Curl_gethostname.
authorSteve Holme <steve_holme@hotmail.com>
Mon, 19 Sep 2011 19:55:56 +0000 (20:55 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Sep 2011 21:59:53 +0000 (23:59 +0200)
commit5801ddb85cc26dea10f73246b364d8cc52557372
tree651f537be45de2b7b8507fb1d1ebb850a2b36a12
parent38b5744266f805f3dd6d9486ba323f99ab420d52
Curl_ntlm_create_type3_message: Tidied up the use of Curl_gethostname.

Removed the code that striped off the domain name when Curl_gethostname
returned the fully qualified domain name as the function has been
updated to return the un-qualified host name.

Replaced the use of HOSTNAME_MAX as the size of the buffer in the call
to Curl_gethostname with sizeof(host) as this is safer should the buffer
size ever be changed.
lib/curl_ntlm_msgs.c