We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64b38b5 commit b64739eCopy full SHA for b64739e
1 file changed
tools/server/server-models.cpp
@@ -798,9 +798,10 @@ void server_models::load(const std::string & name) {
798
std::thread log_thread([&]() {
799
// read stdout/stderr and forward to main server log
800
// also handle status report from child process
801
+ std::vector<char> vec_buf(128 * 1024); // large buffer for storing info
802
+ char * buffer = vec_buf.data();
803
if (stdout_file) {
- char buffer[128 * 1024]; // large buffer for storing info
- while (fgets(buffer, sizeof(buffer), stdout_file) != nullptr) {
804
+ while (fgets(buffer, vec_buf.size(), stdout_file) != nullptr) {
805
LOG("[%5d] %s", port, buffer);
806
std::string str(buffer);
807
if (string_starts_with(buffer, CMD_CHILD_TO_ROUTER_READY)) {
0 commit comments