summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-01 18:57:24 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-03-01 18:57:24 +0000
commit7d48f09b39ff522977b27aee2c1a8867f28fd6cd (patch)
treea9dc51772debb24c2f0251cba81457947fde4f18 /stream
parent2acd36c48ecb23f9fed6140e74634fb434f9f3ff (diff)
downloadmpv-7d48f09b39ff522977b27aee2c1a8867f28fd6cd.tar.bz2
mpv-7d48f09b39ff522977b27aee2c1a8867f28fd6cd.tar.xz
Use sizeof instead of hardcoded size.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30801 b3059339-0415-0410-9bf9-f77b7e298cf2
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);