diff
42 -       for (s = 0; s < spp; s++)
42 +       for (s = 0; s < spp && s < MAX_SAMPLES; s++)
42 +           assert(s < MAX_SAMPLES);
