(No more -port 5030
when you join your own server for testing!)
Also fixed potential crash if the argument to -port
was too long.
I've also added -clientport
, in case you want a specific port as a client. (You probably don't.)
If you ever need to, you can change the client port number.
Using strcpy is stupid because we don't know how long the argument would be. There's no need for a buffer anyway.