CID:1214237 String not null terminated
This commit is contained in:
parent
455ed10e40
commit
65d9cf62c9
|
@ -1543,7 +1543,7 @@ static void switch_core_set_serial(void)
|
|||
close(write_fd);
|
||||
}
|
||||
} else {
|
||||
bytes = read(fd, buf, sizeof(buf));
|
||||
bytes = read(fd, buf, sizeof(buf) - 1);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue