ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/socket/lowlevel.C
(Generate patch)

Comparing deliantra/server/socket/lowlevel.C (file contents):
Revision 1.100 by root, Wed Nov 14 23:24:27 2018 UTC vs.
Revision 1.101 by root, Sat Dec 1 20:22:13 2018 UTC

280 { 280 {
281 data = (char *)inbuf + 2; // better read garbage than segfault 281 data = (char *)inbuf + 2; // better read garbage than segfault
282 datalen = 0; 282 datalen = 0;
283 } 283 }
284 284
285 for (packet_type *pkt = packets; pkt < packets + array_length (packets); ++pkt) 285 for (packet_type *pkt = packets; pkt < packets + ecb_array_length (packets); ++pkt)
286 if (!strcmp ((char *)inbuf + 2, pkt->name)) 286 if (!strcmp ((char *)inbuf + 2, pkt->name))
287 { 287 {
288 if (pkt->flags & PF_PLAYER && !always_immediate (this, pkt, data, datalen)) 288 if (pkt->flags & PF_PLAYER && !always_immediate (this, pkt, data, datalen))
289 queue_command (pkt, data, datalen); 289 queue_command (pkt, data, datalen);
290 else 290 else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines