From: Felix Fietkau Date: Wed, 23 Jul 2025 09:51:39 +0000 (+0200) Subject: ucode: fix entries/size confusion X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6ed8536142bbd4360b55a423723456a6a862c99b;p=project%2Fudebug.git ucode: fix entries/size confusion Signed-off-by: Felix Fietkau --- 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; }