summaryrefslogtreecommitdiff
path: root/src/common/packed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/packed.c')
-rw-r--r--src/common/packed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/packed.c b/src/common/packed.c
index 163ed3b..a8ce3c5 100644
--- a/src/common/packed.c
+++ b/src/common/packed.c
@@ -141,7 +141,7 @@ bool has_more_data_in_packed_buffer(const packed_buffer *pbuf)
{
bool result; /* Bilan à retourner */
- result = (pbuf->pos < pbuf->used);
+ result = (pbuf->pos < (pbuf->used + sizeof(uint32_t)));
return result;