/* we are guaranteed that the first header field will be
* the content-type (by the Annodex standard) */
content_type_string[0] = '\0';
- if( !strncasecmp( &p_oggpacket->packet[28], "Content-Type: ", 14 ) )
+ if( !strncasecmp( (char*)(&p_oggpacket->packet[28]), "Content-Type: ", 14 ) )
{
uint8_t *p = memchr( &p_oggpacket->packet[42], '\r',
p_oggpacket->bytes - 1 );
if( p && p[0] == '\r' && p[1] == '\n' )
- sscanf( &p_oggpacket->packet[42], "%1024s\r\n",
+ sscanf( (char*)(&p_oggpacket->packet[42]), "%1024s\r\n",
content_type_string );
}