diff --git a/librdmacm/examples/cmtime.c b/librdmacm/examples/cmtime.c index 5591a8dd4..6d63c5359 100644 --- a/librdmacm/examples/cmtime.c +++ b/librdmacm/examples/cmtime.c @@ -990,7 +990,7 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - nodes = calloc(sizeof *nodes, iter); + nodes = calloc(iter, sizeof *nodes); if (!nodes) { perror("calloc"); exit(EXIT_FAILURE);