networkmap: Fixed numerous buffer overflow cases (one of them occuring with Windows Home Server 2011)