mirror of https://github.com/mpv-player/mpv
use strchr() instead of index()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21480 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
89735bd197
commit
12469e0c2e
|
@ -169,7 +169,7 @@ static dvb_channels_list *dvb_get_channels(char *filename, int type)
|
|||
if((line[0] == '#') || (strlen(line) == 0))
|
||||
continue;
|
||||
|
||||
colon = index(line, ':');
|
||||
colon = strchr(line, ':');
|
||||
if(colon)
|
||||
{
|
||||
k = colon - line;
|
||||
|
|
Loading…
Reference in New Issue