diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-19 17:03:50 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-08-19 17:03:50 +0200 |
commit | ed1836900c679f5a2b94fbe282a18cac4fe2d094 (patch) | |
tree | dad206440c7f1ff0a41795d76a41655de81b296c | |
parent | 49329ceadbf4d76b865445ca22f8fe0949b93e30 (diff) | |
download | abrt-ed1836900c679f5a2b94fbe282a18cac4fe2d094.tar.gz abrt-ed1836900c679f5a2b94fbe282a18cac4fe2d094.tar.xz abrt-ed1836900c679f5a2b94fbe282a18cac4fe2d094.zip |
Plugins/CCpp: remove trailing \n from debuginfo-install's output
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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 52c8c69d..ddf76967 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); |