Fixes SIGSEGV (Segmentation fault) and makes vncserver usable

Fixes SIGSEGV (Segmentation fault) and makes androidvncserver at least able to handle incoming connection on my phone. Looks like someone has forgotten about \n char ;)