shithub: qk1

Download patch

ref: e0318617afc836d3756390ffd3f9d6cb3d5f52ca
parent: d1fe886f1a8dc1525299ae4a0111b04f5326bfcb
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Nov 22 19:56:06 EST 2023

fix a warning when building with -O0

--- a/net.h
+++ b/net.h
@@ -3,7 +3,7 @@
 struct Addr{
 	int fd;
 	char ip[46];
-	char srv[6];
+	char srv[8];
 	char sys[52];
 };
 extern Addr myip;
--- a/net_main.c
+++ b/net_main.c
@@ -214,7 +214,7 @@
 		Con_Printf ("Bad value, must be between 1 and 65534\n");
 		return;
 	}
-	snprint(myip.srv, sizeof myip.srv, "%hud", n);
+	snprint(myip.srv, sizeof myip.srv, "%d", n);
 }
 
 /*