summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
Diffstat (limited to 'stream')
-rw-r--r--stream/stream_cue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/stream_cue.c b/stream/stream_cue.c
index 29139e74e8..5b5eb5fdb2 100644
--- a/stream/stream_cue.c
+++ b/stream/stream_cue.c
@@ -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);