From 7630688957bacb113aeb5653800f30847e70ab38 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Fri, 12 Aug 2016 21:31:04 +0200 Subject: [PATCH] Fix profile update reading end of lines --- .../volk_gnsssdr/apps/volk_gnsssdr_profile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/apps/volk_gnsssdr_profile.cc b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/apps/volk_gnsssdr_profile.cc index a881d4572..c1b764210 100644 --- a/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/apps/volk_gnsssdr_profile.cc +++ b/src/algorithms/libs/volk_gnsssdr_module/volk_gnsssdr/apps/volk_gnsssdr_profile.cc @@ -259,7 +259,7 @@ void read_results(std::vector *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));