Fix copy-paste error in port argument check

This commit is contained in:
Keith Winstein
2012-03-21 22:45:58 -04:00
parent 11ca4c9440
commit ab94397726
+1 -1
View File
@@ -169,7 +169,7 @@ int main( int argc, char *argv[] )
} }
if ( desired_port if ( desired_port
&& ( strspn( desired_ip, "0123456789" ) != strlen( desired_ip ) ) ) { && ( strspn( desired_port, "0123456789" ) != strlen( desired_port ) ) ) {
fprintf( stderr, "%s: Bad UDP port (%s)\n", argv[ 0 ], desired_port ); fprintf( stderr, "%s: Bad UDP port (%s)\n", argv[ 0 ], desired_port );
print_usage( argv[ 0 ] ); print_usage( argv[ 0 ] );
exit( 1 ); exit( 1 );