Author: Matteo F. Vescovi Description: Fix FTBFS against gcc7 Forwarded: not-needed diff --git a/interactive.c b/interactive.c index 9137790..f906923 100644 --- a/interactive.c +++ b/interactive.c @@ -118,7 +118,7 @@ void interactiveShowData(void) { || (((flags & (MODEAC_MSG_MODES_HIT | MODEAC_MSG_MODEC_OLD )) == 0 ) && (msgs > 127) ) ) { char strSquawk[5] = " "; - char strFl[7] = " "; + char strFl[12] = " "; char strTt[5] = " "; char strGs[5] = " "; @@ -140,7 +140,7 @@ void interactiveShowData(void) { if (Modes.interactive_rtl1090) { // RTL1090 display mode if (trackDataValid(&a->altitude_valid)) { - snprintf(strFl,6,"F%03d",((a->altitude+50)/100)); + snprintf(strFl,11,"F%03d",((a->altitude+50)/100)); } printf("%06x %-8s %-4s %-3s %-3s %4s %-6d %-2.0f\n", a->addr, a->callsign, strFl, strGs, strTt, strSquawk, msgs, (now - a->seen)/1000.0);