mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 10:02:17 +00:00
Use sizeof instead of hardcoded size.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30801 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2acd36c48e
commit
7d48f09b39
@ -368,7 +368,7 @@ static int cue_read_cue (char *in_cue_filename)
|
||||
/* read the first line and hand it to find_bin, which will
|
||||
test more than one possible name of the file */
|
||||
|
||||
if(! fgets( sLine, 256, fd_cue ) )
|
||||
if(! fgets( sLine, sizeof(sLine), fd_cue ) )
|
||||
{
|
||||
mp_msg(MSGT_OPEN,MSGL_ERR,
|
||||
MSGTR_MPDEMUX_CUEREAD_ErrReadingFromCueFile, in_cue_filename);
|
||||
@ -384,7 +384,7 @@ static int cue_read_cue (char *in_cue_filename)
|
||||
|
||||
/* now build the track list */
|
||||
/* red the next line and call our track finder */
|
||||
if(! fgets( sLine, 256, fd_cue ) )
|
||||
if(! fgets( sLine, sizeof(sLine), fd_cue ) )
|
||||
{
|
||||
mp_msg(MSGT_OPEN,MSGL_ERR,
|
||||
MSGTR_MPDEMUX_CUEREAD_ErrReadingFromCueFile, in_cue_filename);
|
||||
|
Loading…
Reference in New Issue
Block a user