… | |
… | |
793 | { |
793 | { |
794 | LOG (llevDebug, "Corrupt ncom command <%s> not long enough - discarding\n", buf); |
794 | LOG (llevDebug, "Corrupt ncom command <%s> not long enough - discarding\n", buf); |
795 | return; |
795 | return; |
796 | } |
796 | } |
797 | |
797 | |
798 | packet = GetShort_String (buf); |
798 | packet = net_uint16 (buf); |
799 | repeat = GetInt_String (buf + 2); |
799 | repeat = net_uint32 (buf + 2); |
|
|
800 | |
800 | /* -1 is special - no repeat, but don't update */ |
801 | /* -1 is special - no repeat, but don't update */ |
801 | if (repeat != -1) |
802 | if (repeat != -1) |
802 | pl->count = repeat; |
803 | pl->count = repeat; |
803 | |
804 | |
804 | if ((len - 4) >= MAX_BUF) |
805 | if ((len - 4) >= MAX_BUF) |