smoother-test: Fix array overflow.

This commit is contained in:
Tanu Kaskinen 2012-03-30 10:31:48 +03:00 committed by Tanu Kaskinen
parent 19c058dd08
commit 2567bc10ec

View file

@ -75,6 +75,7 @@ START_TEST (smoother_test) {
pa_log_debug("%i\t\t%i", msec[u], msec[u+1]);
u += 2;
if (u < PA_ELEMENTSOF(msec))
pa_smoother_resume(s, (pa_usec_t) msec[u] * PA_USEC_PER_MSEC, TRUE);
}