From 6ed8536142bbd4360b55a423723456a6a862c99b Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Jul 2025 11:51:39 +0200 Subject: [PATCH] ucode: fix entries/size confusion Signed-off-by: Felix Fietkau --- lib-ucode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.30.2