Increase temporary peer name buffer size

Add room for the possible extra characters '[', ']', and ':'.
Use robust_snprintf instead of manually checking beforehand if the buffer if big enough