aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--unpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unpack.c b/unpack.c
index 8691519..0bd51c1 100644
--- a/unpack.c
+++ b/unpack.c
@@ -135,7 +135,7 @@ enum pack_status unpack(const void *buf_, size_t size, const char *fmt, ...)
if (fmt[i] == 'x') goto skip;
for (unsigned long long j = 0; j < count; j++) {
- val.u = read_val(buf + s * j, s, endianness);
+ val.u = read_val(buf + offset + s * j, s, endianness);
tr_debug("val.u: %" PRIuMAX, val.u);
if (fmt[i] == 'f') {