1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2024-12-15 04:30:33 +00:00

Fix profile update reading end of lines

This commit is contained in:
Carles Fernandez 2016-08-12 21:31:04 +02:00
parent 12739fccdd
commit 7630688957

View File

@ -259,7 +259,7 @@ void read_results(std::vector<volk_gnsssdr_test_results_t> *results, std::string
found = 127;
}
str_size = config_str.size();
char buffer[128];
char buffer[128] = {'\0'};
config_str.copy(buffer, found + 1, 0);
buffer[found] = '\0';
single_kernel_result.push_back(std::string(buffer));