]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix an error in a last minute change (was using maxcontentlength in Write, which...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Jul 2003 04:15:18 +0000 (04:15 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 21 Jul 2003 04:15:18 +0000 (04:15 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3295 d7cf8633-e32d-0410-b094-e92efae38249

lhnet.c

diff --git a/lhnet.c b/lhnet.c
index 3854e2d4731aa738f3ae1d49e75368ea67c2fcc3..d9597f215469ef25fa17792299dd50dfe5d90fe4 100644 (file)
--- 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;