Fix possible buffer overflow while doing sscanf()

MAXHOSTNAMELEN + 100 is only 164 which is less than 256 sscanf() buffer.
Fix it by increasing size of nambuf buffer.
Merge pull request #328 from darkjames/master

Fix possible buffer overflow while doing sscanf(); make the buffer the same size as the size in the %s format item.