diff --git a/src/main/io/osd.c b/src/main/io/osd.c index 953588e6f4d..b1ec0c84fcd 100644 --- a/src/main/io/osd.c +++ b/src/main/io/osd.c @@ -5346,11 +5346,13 @@ static void osdShowHDArmScreen(void) armScreenRow = drawLogos(false, armScreenRow); armScreenRow++; + memset(buf2, '\0', sizeof(buf2)); if (!osdConfig()->use_pilot_logo && osdElementEnabled(OSD_PILOT_NAME, false) && strlen(systemConfig()->pilotName) > 0) { osdFormatPilotName(buf2); showPilotOrCraftName = true; } + memset(craftNameBuf, '\0', sizeof(craftNameBuf)); if (osdElementEnabled(OSD_CRAFT_NAME, false) && strlen(systemConfig()->craftName) > 0) { osdFormatCraftName(craftNameBuf); if (strlen(buf2) > 0) { @@ -5486,11 +5488,13 @@ static void osdShowSDArmScreen(void) #endif #endif + memset(buf2, '\0', sizeof(buf2)); if (osdElementEnabled(OSD_PILOT_NAME, false) && strlen(systemConfig()->pilotName) > 0) { osdFormatPilotName(buf2); showPilotOrCraftName = true; } + memset(craftNameBuf, '\0', sizeof(craftNameBuf)); if (osdElementEnabled(OSD_CRAFT_NAME, false) && strlen(systemConfig()->craftName) > 0) { osdFormatCraftName(craftNameBuf); if (strlen(buf2) > 0) {