tcpdir should be NETPATHLEN bytes long, not 64. It ensures that overflow error is consistent with the system limit.