Buffer overflow and unterminated string in nbd-client.c