firmware/apps/rssi: enlarge text buffer in refresh_display()

This change fixes several warnings reported by GCC 10.1.0:

  apps/rssi/main.c:238:30: warning: 'sprintf' may write a terminating
                           nul past the end of the destination
  apps/rssi/main.c:238:4: note: 'sprintf' output between 10 and 17
                          bytes into a destination of size 16

  apps/rssi/main.c:413:26: warning: '.' directive writing 1 byte into
                           a region of size between 0 and 9
  apps/rssi/main.c:413:3: note: 'sprintf' output between 10 and 20
                          bytes into a destination of size 16

Change-Id: I7980727b78f7622d792d82170f73c90ac5770397
This commit is contained in:
Vadim Yanitskiy 2020-06-09 00:56:37 +07:00 committed by laforge
parent 55a63b1759
commit e4d6035a9b
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ static void print_display(char *text, int *y, int c)
static void refresh_display(void)
{
char text[16];
char text[32];
int bat = battery_info.battery_percent;
fb_clear();