Errors in the docs

In the documentation of the SDL_PixelFormat structure is written:
/* Get the topleft pixel */
index=(Uint8 *)surface->pixels;
color=fmt->palette->colors[index];

Shouldn’t the second line be:
index=*(Uint8 *)surface->pixels;
?–
Marco Iannaccone @Marco_Iannaccone
ICQ: 18748121 MetalCoder

"What is real? How do you define real? If you’re talking about your
senses, what you feel, taste, smell, or see, then all you’re talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix