unix: fix buffer overflow

thx https://github.com/plonk/PeerCastIM4Linux/commit/563a39f3d8206627a2a15560fe397dcd6825fbb7