cansniffer: fix buffer length in readsettings()

The Android build discovered a char buffer overflow in readsettings().

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
pull/204/head
Oliver Hartkopp 2020-05-07 18:49:20 +02:00
parent c5cb7e1a7c
commit becc0fc6cc
1 changed files with 1 additions and 1 deletions

View File

@ -800,7 +800,7 @@ int readsettings(char* name)
{
int fd;
char fname[30] = SETFNAME;
char buf[25] = {0};
char buf[30] = {0};
int j;
bool done = false;