Bug in SDL TTF

Hello all,

I report a bug in the SDL TTF library,
in the file SDL_ttf.c,
in the function TTF_RenderUNICODE_Blended,
in the line 1073,
in the loop for underline :

for ( col=width; col > 0; ++col ) {
*dst++ = 4;
}

is WRONG, we need

for ( col=width; col > 0; --col ) {
*dst++ = 4;
}

there, otherwise the loop will never end because of ++col and *dst will page
fault.

Stephane

there, otherwise the loop will never end because of ++col and *dst will page
fault.

Thanks, this is already fixed in CVS.

See ya!
-Sam Lantinga, Lead Programmer, Loki Entertainment Software