1
0
Fork 0
forked from fte/fteqw

Use sizeof for determining non-null terminated buffer size.

This commit is contained in:
Daniel Svensson 2023-12-22 10:37:23 +01:00
parent 8813af0e40
commit 1c80a9f365

View file

@ -83,7 +83,7 @@ void SV_FindProxies(SOCKET sock, cluster_t *cluster, sv_t *defaultqtv)
if (cluster->maxproxies >= 0 && cluster->numproxies >= cluster->maxproxies) if (cluster->maxproxies >= 0 && cluster->numproxies >= cluster->maxproxies)
{ {
const char buffer[] = {dem_all, 1, 'P','r','o','x','y',' ','i','s',' ','f','u','l','l','.'}; const char buffer[] = {dem_all, 1, 'P','r','o','x','y',' ','i','s',' ','f','u','l','l','.'};
send(sock, buffer, strlen(buffer), 0); send(sock, buffer, sizeof(buffer), 0);
closesocket(sock); closesocket(sock);
return; return;
} }