X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=thunk.c;h=7f31cffe0968c87a83d59b27ecab2f1f79e78d99;hb=810cf2bbd4c5c1417bda8bec49caf0ababc22860;hp=17f3d320bb8eaa4e231ddea7c3e2ba2d374bd0bf;hpb=c557a8c7b755d8c153fc0f5be00688228be96e76;p=mirror_qemu.git diff --git a/thunk.c b/thunk.c index 17f3d320bb..7f31cffe09 100644 --- a/thunk.c +++ b/thunk.c @@ -86,7 +86,7 @@ void thunk_register_struct(int id, const char *name, const argtype *types) #endif /* now we can alloc the data */ - for(i = 0;i < 2; i++) { + for (i = 0; i < ARRAY_SIZE(se->field_offsets); i++) { offset = 0; max_align = 1; se->field_offsets[i] = g_new(int, nb_fields);