diff options
| -rw-r--r-- | abrt.spec | 2 | ||||
| -rw-r--r-- | lib/Plugins/CCpp.cpp | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -4,7 +4,7 @@ Summary: Automatic bug detection and reporting tool Name: abrt Version: 0.0.7 -Release: 2%{?dist} +Release: 1%{?dist} License: GPLv2+ Group: Applications/System URL: https://fedorahosted.org/abrt/ diff --git a/lib/Plugins/CCpp.cpp b/lib/Plugins/CCpp.cpp index 52c8c69..ddf7696 100644 --- a/lib/Plugins/CCpp.cpp +++ b/lib/Plugins/CCpp.cpp @@ -136,6 +136,10 @@ static void InstallDebugInfos(const std::string& pPackage) #endif while (fgets(buff, sizeof(buff), pipeout_fp)) { + int last = strlen(buff) - 1; + if (last >= 0 && buff[last] == '\n') + buff[last] = '\0'; + comm_layer_inner_debug(buff); comm_layer_inner_status(buff); |
