Fixed memory overrun caused by buffer being too small.

Also fixed satellite count which got broken when I changed the GPS info flags to add more.
This commit is contained in:
vk7js 2022-09-13 21:13:54 +10:00 committed by Silvano Seva
parent fbc4e380b3
commit 4ba9b3ec34
2 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ typedef enum
vpGPSAltitude = 0x40,
vpGPSDirection = 0x80,
vpGPSSatCount = 0x100,
vpGPSAll = 0xff,
vpGPSAll = 0x1ff,
}
vpGPSInfoFlags_t;

View File

@ -595,7 +595,7 @@ void vp_announceGPSInfo(vpGPSInfoFlags_t gpsInfoFlags)
addSilenceIfNeeded(flags);
}
char buffer[16] = "\0";
char buffer[17] = "\0";
if (gpsInfoFlags & vpGPSSpeed)
{