From 7d48f09b39ff522977b27aee2c1a8867f28fd6cd Mon Sep 17 00:00:00 2001 From: reimar Date: Mon, 1 Mar 2010 18:57:24 +0000 Subject: Use sizeof instead of hardcoded size. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30801 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_cue.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stream') 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); -- cgit v1.2.3