cansniffer: fix buffer length in readsettings()

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

Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
This commit is contained in:
Oliver Hartkopp
2020-05-07 18:49:20 +02:00
parent c5cb7e1a7c
commit becc0fc6cc
+1 -1
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;