[Pkg-wmaker-commits] [wmtv] 22/48: wmtv: Fix frequency sent to external program.

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 e3f23effaa85f147d456180fe9f9017f54f01f3a
Author: Doug Torrance <dtorrance at piedmont.edu>
Date:   Mon Feb 1 00:45:15 2016 -0500

    wmtv: Fix frequency sent to external program.
    
    Need to divide by 16 or 16000 depending on whether using kHz or MHz.
    
    Patch by Nicolas Boullis <nboullis at debian.org> for Debian package version
    0.6.5-14 or 15.  (Not mentioned in debian/changelog.)
---
 src/wmtv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/wmtv.c b/src/wmtv.c
index 8a06cfe..354a6dd 100644
--- a/src/wmtv.c
+++ b/src/wmtv.c
@@ -547,7 +547,7 @@ main(int argc, char *argv[])
 														snprintf(expansions[0], 3, "%d", cchannel+1);
 														expansions[1] = comment[cchannel];
 														expansions[2] = malloc(15*sizeof(char));
-														snprintf(expansions[2], 15, "%ld", rfreq);
+														snprintf(expansions[2], 15, "%.3f", (double)rfreq/(double)st);
 														command = expand_format(exe, letters, expansions);
 														/* system(exe); */
 														child_pid = fork();

-- 
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