Fixed C99 loop.