[MPlayer-cvslog] r30801 - trunk/stream/stream_cue.c

reimar subversion at mplayerhq.hu
Mon Mar 1 19:57:24 CET 2010


Author: reimar
Date: Mon Mar  1 19:57:24 2010
New Revision: 30801

Log:
Use sizeof instead of hardcoded size.

Modified:
   trunk/stream/stream_cue.c

Modified: trunk/stream/stream_cue.c
==============================================================================
--- trunk/stream/stream_cue.c	Sun Feb 28 18:39:30 2010	(r30800)
+++ trunk/stream/stream_cue.c	Mon Mar  1 19:57:24 2010	(r30801)
@@ -368,7 +368,7 @@ static int cue_read_cue (char *in_cue_fi
   /* 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_fi
 
   /* 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);


More information about the MPlayer-cvslog mailing list