[hamradio-commits] [dump1090-mutability] 03/03: gcc7
Matteo F. Vescovi
mfv at moszumanska.debian.org
Sun Jan 28 13:46:01 UTC 2018
This is an automated email from the git hooks/post-receive script.
mfv pushed a commit to branch patch-queue/master
in repository dump1090-mutability.
commit b9226bf975bfbb2f6b7d8ee89632b0c88e909e97
Author: Matteo F. Vescovi <mfv at debian.org>
Date: Sat Jan 27 23:01:01 2018 +0100
gcc7
Fix FTBFS against gcc7
---
interactive.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/interactive.c b/interactive.c
index 22221a7..954ebda 100644
--- a/interactive.c
+++ b/interactive.c
@@ -103,7 +103,7 @@ void interactiveShowData(void) {
) {
int altitude = a->altitude, speed = a->speed;
char strSquawk[5] = " ";
- char strFl[6] = " ";
+ char strFl[12] = " ";
char strTt[5] = " ";
char strGs[5] = " ";
@@ -128,7 +128,7 @@ void interactiveShowData(void) {
if (Modes.interactive_rtl1090) { // RTL1090 display mode
if (a->bFlags & MODES_ACFLAGS_ALTITUDE_VALID) {
- snprintf(strFl,6,"F%03d",(altitude/100));
+ snprintf(strFl,11,"F%03d",((a->altitude+50)/100));
}
printf("%06x %-8s %-4s %-3s %-3s %4s %-6d %-2.0f\n",
a->addr, a->flight, strFl, strGs, strTt, strSquawk, msgs, (now - a->seen)/1000.0);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090-mutability.git
More information about the pkg-hamradio-commits
mailing list