msg_Err( p_demux, "out of memory" );
return NULL;
}
- strncpy ( p_line, p_buf, i );
+ strncpy ( p_line, (char*)p_buf, i );
p_line[i] = '\0';
// msg_Dbg( p_demux, "i = %d, pos = %d, %s", i, *p_pos, p_line );
return p_line;
msg_Warn( p_demux, "separator %s does not match %s", psz_line,
p_sys->psz_separator );
}
- free( psz_line );
}
+ free( psz_line );
psz_line = GetLine( p_demux, &i_pos );
while( psz_line && *psz_line )
{