mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-01 22:52:07 +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);
|
close(write_fd);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
bytes = read(fd, buf, sizeof(buf));
|
bytes = read(fd, buf, sizeof(buf) - 1);
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user