Skip to content

Commit

Permalink
Update osd.c
Browse files Browse the repository at this point in the history
- fixed buffer issue
- agreed to pedantry ;)
  • Loading branch information
MrD-RC committed Jan 13, 2024
1 parent c48f514 commit ac74878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/io/osd.c
Original file line number Diff line number Diff line change
Expand Up @@ -4780,7 +4780,7 @@ static void osdShowStats(bool isSinglePageStatsCompatible, uint8_t page)
displayClearScreen(osdDisplayPort);

if (isSinglePageStatsCompatible) {
char buff[20];
char buff[25];
tfp_sprintf(buff, "*** STATS ");
#ifdef USE_BLACKBOX
#ifdef USE_SDCARD
Expand Down Expand Up @@ -4854,7 +4854,7 @@ static void osdShowStats(bool isSinglePageStatsCompatible, uint8_t page)
if (logNumber >= 0)
tfp_sprintf(buff, ": %05ld ", logNumber);
else
tfp_sprintf(buff, ": %s", "INVALID");
strcat(buff, ": INVALID");

displayWrite(osdDisplayPort, statValuesX, row++, buff);
}
Expand Down

0 comments on commit ac74878

Please sign in to comment.