# HG changeset patch # User reimar # Date 1267469844 0 # Node ID 76a6338e5e71bf7f4748e8c3d0da68b25c7dd241 # Parent 33765d7d6e0ab1bf02a89b63ac8ce3038ad24f85 Use sizeof instead of hardcoded size. diff -r 33765d7d6e0a -r 76a6338e5e71 stream/stream_cue.c --- a/stream/stream_cue.c Sun Feb 28 17:39:30 2010 +0000 +++ b/stream/stream_cue.c Mon Mar 01 18:57:24 2010 +0000 @@ -368,7 +368,7 @@ /* 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 @@ /* 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);