diff options
Diffstat (limited to 'src/libcoopgamma.c')
-rw-r--r-- | src/libcoopgamma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcoopgamma.c b/src/libcoopgamma.c index abf05c5..40baf77 100644 --- a/src/libcoopgamma.c +++ b/src/libcoopgamma.c @@ -2415,7 +2415,7 @@ int libcoopgamma_get_gamma_recv(libcoopgamma_filter_table_t* restrict table, { if (off + sizeof(int64_t) > n) goto bad; - table->filters[i].priority = *(int64_t*)payload; + table->filters[i].priority = *(int64_t*)(payload + off); off += sizeof(int64_t); if (memchr(payload + off, '\0', n - off) == NULL) goto bad; |