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 8, 2024
1 parent 1457817 commit 4ded247
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 @@ -4742,7 +4742,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 @@ -4816,7 +4816,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 4ded247

Please sign in to comment.