joyent/node — pull request #5306 by RockLi (2013-04-15 13:27:54+00:00)
Title: Modify gethostname buf from 255 to 256

1. SUSv2 gurantees hostnames are limited to 255 bytes, if the size of buffer is 255, the last char will be truncated in some platforms
2. If the hostname length exceeds the buf length(255), there may not contain null char in the buf, the following String::New will have problem