fai così:
codice:
if (provaIndex + 1 < 10){
	prova = realloc(prova, (provaIndex + 2) * sizeof(int));
}