summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau2025-07-23 09:51:39 +0000
committerFelix Fietkau2025-07-23 09:51:39 +0000
commit6ed8536142bbd4360b55a423723456a6a862c99b (patch)
tree231c70ea5793b227bf65eba4b177d90c98d1642f
parent14d4fec369935c93f6e01a5f791c279f20a4d75b (diff)
downloadudebug-6ed8536142bbd4360b55a423723456a6a862c99b.tar.gz
ucode: fix entries/size confusion
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--lib-ucode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-ucode.c b/lib-ucode.c
index 49e60fa..d282197 100644
--- a/lib-ucode.c
+++ b/lib-ucode.c
@@ -570,7 +570,7 @@ uc_udebug_create_ring(uc_vm_t *vm, size_t nargs)
meta->n_flags++;
}
- if (udebug_buf_init(buf, ucv_int64_get(size), ucv_int64_get(entries))) {
+ if (udebug_buf_init(buf, ucv_int64_get(entries), ucv_int64_get(size))) {
free(buf);
return NULL;
}