diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-27 12:01:46 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-27 12:01:46 +0100 |
commit | f1931bb8749b3d6f224065e7e60684bb08dfae13 (patch) | |
tree | 42f3bafb2567862df7d0e897f8be16ead4363c9a /lib | |
parent | de73835bdadaf13a7cc5a2f1b08428da3a8e78b6 (diff) | |
download | abrt-f1931bb8749b3d6f224065e7e60684bb08dfae13.tar.gz abrt-f1931bb8749b3d6f224065e7e60684bb08dfae13.tar.xz abrt-f1931bb8749b3d6f224065e7e60684bb08dfae13.zip |
simplify messags handling
text data bss dec hex filename
38598 1840 288 40726 9f16 old/libBugzilla.so
38474 1840 288 40602 9e9a new/libBugzilla.so
37433 2144 24 39601 9ab1 old/libFileTransfer.so
37382 2144 24 39550 9a7e new/libFileTransfer.so
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Plugins/Bugzilla.cpp | 5 | ||||
-rw-r--r-- | lib/Plugins/FileTransfer.cpp | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/Plugins/Bugzilla.cpp b/lib/Plugins/Bugzilla.cpp index 2da39087..dcabf1ad 100644 --- a/lib/Plugins/Bugzilla.cpp +++ b/lib/Plugins/Bugzilla.cpp @@ -293,9 +293,8 @@ static void create_new_bug_description(const map_crash_report_t& pCrashReport, s } else if (it->second[CD_TYPE] == CD_BIN) { - char buffer[1024]; - snprintf(buffer, 1024, _("Binary file %s will not be reported."), it->first.c_str()); - warn_client(std::string(buffer)); + std::string msg = ssprintf(_("Binary file %s will not be reported."), it->first.c_str()); + warn_client(msg); //update_client(_("Binary file ")+it->first+_(" will not be reported.")); } } diff --git a/lib/Plugins/FileTransfer.cpp b/lib/Plugins/FileTransfer.cpp index 3492156f..0573c511 100644 --- a/lib/Plugins/FileTransfer.cpp +++ b/lib/Plugins/FileTransfer.cpp @@ -77,9 +77,8 @@ void CFileTransfer::SendFile(const std::string& pURL, } } - char buffer[1024]; - snprintf(buffer, 1024, _("Sending archive %s via %s"), pFilename.c_str(), protocol.c_str()); - update_client(buffer); + std::string msg = ssprintf(_("Sending archive %s via %s"), pFilename.c_str(), protocol.c_str()); + update_client(msg.c_str()); std::string wholeURL; if (pURL[len-1] == '/') |