From 8317c84904b4bc265ff5df9582919b97c527a781 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 13 Jan 2008 15:01:07 +0000 Subject: Get rid of quite useless inum variable git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25731 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_cue.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'stream') diff --git a/stream/stream_cue.c b/stream/stream_cue.c index cbb5e3e2c4..e03cd0e101 100644 --- a/stream/stream_cue.c +++ b/stream/stream_cue.c @@ -98,7 +98,6 @@ static int nTracks = 0; /* presumes Line is preloaded with the "current" line of the file */ static int cue_getTrackinfo(char *Line, tTrack *track) { - char inum[3]; char min; char sec; char fps; @@ -132,9 +131,9 @@ static int cue_getTrackinfo(char *Line, tTrack *track) if (strncmp(&Line[4], "INDEX ", 6)==0) { /* check stuff here so if the answer is false the else stuff below won't be executed */ - strncpy(inum, &Line[10], 2); inum[2] = '\0'; + Line[12] = 0; if ((already_set == 0) && - ((strcmp(inum, "00")==0) || (strcmp(inum, "01")==0))) + ((strcmp(&Line[10], "00")==0) || (strcmp(&Line[10], "01")==0))) { already_set = 1; -- cgit v1.2.3