diff options
| author | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-19 17:10:07 +0200 |
|---|---|---|
| committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2009-08-19 17:10:07 +0200 |
| commit | 9b97967f5f87eecf19ce8a7fb8f4900bf0550163 (patch) | |
| tree | f2067a1e17d57bb2f23167f99e8b47f01b15eae0 /lib/Plugins/CCpp.cpp | |
| parent | 05f69e98fbce6e6ef3c1c633ac355f1d81232bcf (diff) | |
| parent | ed1836900c679f5a2b94fbe282a18cac4fe2d094 (diff) | |
| download | abrt-9b97967f5f87eecf19ce8a7fb8f4900bf0550163.tar.gz abrt-9b97967f5f87eecf19ce8a7fb8f4900bf0550163.tar.xz abrt-9b97967f5f87eecf19ce8a7fb8f4900bf0550163.zip | |
Merge branch 'master' of ssh://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/Plugins/CCpp.cpp')
| -rw-r--r-- | lib/Plugins/CCpp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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); |
