From b831e66e9a0e715b6ccee41687d6577f4007a0bb Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Mon, 1 Feb 2016 00:45:15 -0500 Subject: [PATCH] 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 for Debian package version 0.6.5-14 or 15. (Not mentioned in debian/changelog.) --- wmtv/src/wmtv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wmtv/src/wmtv.c b/wmtv/src/wmtv.c index 8a06cfe..354a6dd 100644 --- a/wmtv/src/wmtv.c +++ b/wmtv/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();