From 006d2e650856748938c25e53718db0fde242b176 Mon Sep 17 00:00:00 2001 From: Fabian Dellwing Date: Thu, 27 Apr 2023 12:59:59 +0200 Subject: [PATCH] nc: Fix overflow in port and local_port argument --- Userland/Utilities/nc.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Utilities/nc.cpp b/Userland/Utilities/nc.cpp index 808468a31d..76fb63b29c 100644 --- a/Userland/Utilities/nc.cpp +++ b/Userland/Utilities/nc.cpp @@ -52,8 +52,8 @@ ErrorOr 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;