diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-11 16:43:57 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-12-11 16:43:57 +0100 |
commit | 890f62322fc8fee262e39a10428b1a2489edf267 (patch) | |
tree | 1d4af471459ad12ffb3c3041b628df056f9cb15c /lib/Utils/logging.cpp | |
parent | 4cd94cba0537d47078dac0c075b8ba55a7c53599 (diff) | |
download | abrt-890f62322fc8fee262e39a10428b1a2489edf267.tar.gz abrt-890f62322fc8fee262e39a10428b1a2489edf267.tar.xz abrt-890f62322fc8fee262e39a10428b1a2489edf267.zip |
abrt-cli: report success/failure of reporting. closes bug 71
See https://fedorahosted.org/abrt/ticket/71
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Utils/logging.cpp')
-rw-r--r-- | lib/Utils/logging.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Utils/logging.cpp b/lib/Utils/logging.cpp index db952d1..53b83d7 100644 --- a/lib/Utils/logging.cpp +++ b/lib/Utils/logging.cpp @@ -60,6 +60,7 @@ static void verror_msg_helper(const char *s, va_list p, const char* strerr, int fflush(stdout); full_write(STDERR_FILENO, msg, used + msgeol_len); } + msg[used] = '\0'; /* remove msg_eol (usually "\n") */ if (flags & LOGMODE_SYSLOG) { syslog(LOG_ERR, "%s", msg + prefix_len); } |