summaryrefslogtreecommitdiff
path: root/src/common/socket.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2018-12-16 19:05:34 +0100
committerGitHub <noreply@github.com>2018-12-16 19:05:34 +0100
commitf1f1ef0ff2c9aa7d879df8b959072a7429d2722a (patch)
tree11a7121f30031a2a850015eced3803f060514fa3 /src/common/socket.c
parent41d370cd3308be48b4ce00a50ee46515742978b0 (diff)
parent4b2e8684a9874ba435197936a4a9220510ff671f (diff)
downloadhercules-f1f1ef0ff2c9aa7d879df8b959072a7429d2722a.tar.gz
hercules-f1f1ef0ff2c9aa7d879df8b959072a7429d2722a.tar.bz2
hercules-f1f1ef0ff2c9aa7d879df8b959072a7429d2722a.tar.xz
hercules-f1f1ef0ff2c9aa7d879df8b959072a7429d2722a.zip
Merge pull request #2324 from 4144/updatepackets
Update packets up to 2018-12-12
Diffstat (limited to 'src/common/socket.c')
-rw-r--r--src/common/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/socket.c b/src/common/socket.c
index 025776172..95d8bf578 100644
--- a/src/common/socket.c
+++ b/src/common/socket.c
@@ -2133,7 +2133,7 @@ static void socket_validateWfifo(int fd, size_t len)
ShowError("Sent packet 0x%04X with size %d, but must be size %d\n", cmd, len2, packet_len);
Assert_retv(0);
}
- if (last_head_size < packet_len) {
+ if (last_head_size < (uint32)packet_len) {
ShowError("Reserved too small packet buffer for packet 0x%04X with size %u, but must be size %d\n", cmd, last_head_size, packet_len);
Assert_retv(0);
}