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
parent
c5cb7e1a7c
commit
becc0fc6cc
|
|
@ -800,7 +800,7 @@ int readsettings(char* name)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
char fname[30] = SETFNAME;
|
char fname[30] = SETFNAME;
|
||||||
char buf[25] = {0};
|
char buf[30] = {0};
|
||||||
int j;
|
int j;
|
||||||
bool done = false;
|
bool done = false;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue