From ed1836900c679f5a2b94fbe282a18cac4fe2d094 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 19 Aug 2009 17:03:50 +0200 Subject: Plugins/CCpp: remove trailing \n from debuginfo-install's output Signed-off-by: Denys Vlasenko --- abrt.spec | 2 +- lib/Plugins/CCpp.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/abrt.spec b/abrt.spec index 6203f4a..12a3216 100644 --- a/abrt.spec +++ b/abrt.spec @@ -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); -- cgit