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

Comparing deliantra/server/socket/request.C (file contents):
Revision 1.112 by root, Sun Jul 1 05:00:20 2007 UTC vs.
Revision 1.113 by root, Mon Jul 2 02:29:34 2007 UTC

511void 511void
512NewPlayerCmd (char *buf, int len, player *pl) 512NewPlayerCmd (char *buf, int len, player *pl)
513{ 513{
514 if (len <= 6) 514 if (len <= 6)
515 { 515 {
516 LOG (llevDebug, "Corrupt ncom command <%s> not long enough - discarding\n", buf); 516 LOG (llevDebug, "%s: corrupt ncom command <%s>: not long enough (%d) - discarding\n", pl->ns->host, buf, len);
517 return; 517 return;
518 } 518 }
519 519
520 uint16 cmdid = net_uint16 ((uint8 *)buf); 520 uint16 cmdid = net_uint16 ((uint8 *)buf);
521 sint32 repeat = net_sint32 ((uint8 *)buf + 2); 521 sint32 repeat = net_sint32 ((uint8 *)buf + 2);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines