Fix pointers mismatches (int * vs size_t *)