From: Nathan West Date: Mon, 1 Aug 2016 21:12:24 +0000 (-0400) Subject: apps: fix profile update reading end of lines X-Git-Tag: archive/raspbian/1.3-2+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=14eceeef5c67512cd22dc2f7955b0b233ec5638d;p=volk.git apps: fix profile update reading end of lines Gbp-Pq: Name 0003-apps-fix-profile-update-reading-end-of-lines.patch --- diff --git a/apps/volk_profile.cc b/apps/volk_profile.cc index 2086e3f..51591cc 100644 --- a/apps/volk_profile.cc +++ b/apps/volk_profile.cc @@ -261,7 +261,7 @@ void read_results(std::vector *results, std::string path) 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));