From: havoc Date: Mon, 21 Jul 2003 04:15:18 +0000 (+0000) Subject: fix an error in a last minute change (was using maxcontentlength in Write, which... X-Git-Tag: xonotic-v0.1.0preview~6513 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=614bddbbd83c2a623c2104da69a8d11c1dcbe5d7;p=xonotic%2Fdarkplaces.git fix an error in a last minute change (was using maxcontentlength in Write, which takes contentlength) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3295 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/lhnet.c b/lhnet.c index 3854e2d4..d9597f21 100644 --- a/lhnet.c +++ b/lhnet.c @@ -558,7 +558,7 @@ int LHNET_Read(lhnetsocket_t *lhnetsocket, void *content, int maxcontentlength, int LHNET_Write(lhnetsocket_t *lhnetsocket, const void *content, int contentlength, const lhnetaddress_t *address) { int value = -1; - if (!lhnetsocket || !address || !content || maxcontentlength < 1) + if (!lhnetsocket || !address || !content || contentlength < 1) return -1; if (lhnetsocket->address.addresstype != address->addresstype) return -1;