mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
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…
x
Reference in New Issue
Block a user