changeset 30759:76a6338e5e71

Use sizeof instead of hardcoded size.
author reimar
date Mon, 01 Mar 2010 18:57:24 +0000
parents 33765d7d6e0a
children 937621eaa290
files stream/stream_cue.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);