[MPlayer-dev-eng] Bug in the new tv-parsing config thingie

Stephane Jourdois mplayer-dev-eng at rubis.org
Mon Jan 6 13:54:53 CET 2003


On Fri, Jan 03, 2003 at 09:57:32PM +0100, Mikachu wrote:
> There appears to be some sort of bug in the parsing of the tv channels, i 
> put a new line in the config file as described:
> tv = channels=E5-SVT1,E7-SVT2,SE12-TREAN,E11-TV4,SE11-FEMMAN,SE19-MTV,SE13-ZTV,E6-DR1,E8-DANSK_TV2

Typo, sorry.
This little patch fixes it. Could someone apply it to cvs repository ?
Thanks.



diff -u -r1.46 tv.c
--- libmpdemux/tv.c	5 Jan 2003 14:58:05 -0000	1.46
+++ libmpdemux/tv.c	6 Jan 2003 12:45:01 -0000
@@ -250,7 +250,7 @@
 
 		strcpy(tv_channel_current->name, strchr(tmp, '-') + 1);
 		strchr(tmp, '-')[0] = '\0';
-		strncpy(tv_channel_current->number, tmp, 4);
+		strncpy(tv_channel_current->number, tmp, 5);
 
 		while (strchr(tv_channel_current->name, '_'))
 			strchr(tv_channel_current->name, '_')[0] = ' ';

-- 
 ///  Stephane Jourdois        	/"\  ASCII RIBBON CAMPAIGN \\\
(((    Ingénieur développement 	\ /    AGAINST HTML MAIL    )))
 \\\   6, av. George V	         X                         ///
  \\\  75008  Paris             / \    +33 6 8643 3085    ///




More information about the MPlayer-dev-eng mailing list