nc: Fix overflow in port and local_port argument

This commit is contained in:
Fabian Dellwing 2023-04-27 12:59:59 +02:00 committed by Ali Mohammad Pur
commit 006d2e6508
Notes: sideshowbarker 2024-07-16 21:51:02 +09:00

View file

@ -52,8 +52,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
bool udp_mode = false;
bool numeric_mode = false;
DeprecatedString target;
int port = 0;
int local_port = 0;
u16 port = 0;
u16 local_port = 0;
int maximum_tcp_receive_buffer_size_input = -1;
Core::ArgsParser args_parser;