Fix server problems with argv

master
Nick Krichevsky 2018-09-11 15:30:30 -04:00
parent 24d2ea04a2
commit cfb020a408
1 changed files with 2 additions and 1 deletions

View File

@ -24,7 +24,8 @@ void handle_signal(int signal) {
int main(int argc, char* argv[]) {
if (argc != 2) {
printf("%s", USAGE_STRING);
printf("%s\n", USAGE_STRING);
return 1;
}
char *port = argv[1];
long port_num = strtol(port, NULL, 10);