diff options
| author | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-25 18:11:34 +0100 |
|---|---|---|
| committer | Zdenek Prikryl <zprikryl@redhat.com> | 2009-02-25 18:11:34 +0100 |
| commit | 7c50c6ba9c46effa68adca6bb76525065ea417f2 (patch) | |
| tree | 2de66abdd98fc53781bf4023617854d874cc20e7 /lib/MiddleWare/MiddleWare.cpp | |
| parent | 63f6d78604c351eb5e83932bab3c11c861dcb42d (diff) | |
| download | abrt-7c50c6ba9c46effa68adca6bb76525065ea417f2.tar.gz abrt-7c50c6ba9c46effa68adca6bb76525065ea417f2.tar.xz abrt-7c50c6ba9c46effa68adca6bb76525065ea417f2.zip | |
fixed parsing MWID
Diffstat (limited to 'lib/MiddleWare/MiddleWare.cpp')
| -rw-r--r-- | lib/MiddleWare/MiddleWare.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/MiddleWare/MiddleWare.cpp b/lib/MiddleWare/MiddleWare.cpp index 1f50ed1..8487dc2 100644 --- a/lib/MiddleWare/MiddleWare.cpp +++ b/lib/MiddleWare/MiddleWare.cpp @@ -221,7 +221,7 @@ void CMiddleWare::CreateReport(const std::string& pUUID, pCrashReport.m_sMWID = appLan + ";" + pUID + ";" + pUUID ; } - +#include <iostream> void CMiddleWare::Report(const crash_report_t& pCrashReport) { std::string::size_type pos1 = 0; @@ -229,7 +229,7 @@ void CMiddleWare::Report(const crash_report_t& pCrashReport) std::string lanAppPlugin = pCrashReport.m_sMWID.substr(pos1, pos2); pos1 = pos2 + 1; pos2 = pCrashReport.m_sMWID.find(";", pos1); - std::string UID = pCrashReport.m_sMWID.substr(pos1, pos2); + std::string UID = pCrashReport.m_sMWID.substr(pos1, pos2 - pos1); pos1 = pos2 + 1; std::string UUID = pCrashReport.m_sMWID.substr(pos1);; |
