… | |
… | |
511 | void |
511 | void |
512 | NewPlayerCmd (char *buf, int len, player *pl) |
512 | NewPlayerCmd (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); |