[Pkg-wmaker-commits] [wmtv] 20/48: wmtv: Do not shorten user config file.

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Feb 1 20:13:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmtv.

commit 441433d84af14ac42f6ad26bd67989bd2f7f2e88
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Mon Feb 1 00:45:13 2016 -0500

    wmtv: Do not shorten user config file.
    
    Patch by Nicolas Boullis <Boullis.Nicolas at libertysurf.fr>.  From [1]:
    
       From: Nicolas Boullis <Boullis.Nicolas at libertysurf.fr>
       Subject: wmtv: shortens user's configuration file
       Date: Sun, 18 Nov 2001 02:38:00 +0100
    
       Hello !
    
       When wmtv writes it configuration back to the user's configuration file
       (after the user tried to fine-tune the channels) it forgets the last
       channel. And then... one can't start it any more without correcting the
       configuration file first.
    
       The patch included makes wmtv write all the channels back.
    
    [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=120035
---
 src/wmtv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wmtv.c b/src/wmtv.c
index bc160d5..fd482eb 100644
--- a/src/wmtv.c
+++ b/src/wmtv.c
@@ -1070,7 +1070,7 @@ WriteRCFile(const char *filename)
 	while (fgets(temp, 128, fp)) {
 		if (*temp != '\n' && strchr(temp, '[')) {
 			fseek(fp, 0L, SEEK_CUR);	/* required between read and write */
-			for (i = 0; i < maxpst; i++)
+			for (i = 0; i <= maxpst; i++)
 				fprintf(fp, "%s (%ld)\t%s", cname[i], ftune[i], comment[i]);
 			break;
 		}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmtv.git



More information about the Pkg-wmaker-commits mailing list