diff options
| author | Karel Klic <kklic@redhat.com> | 2009-12-14 10:41:51 +0100 |
|---|---|---|
| committer | Karel Klic <kklic@redhat.com> | 2009-12-14 10:41:51 +0100 |
| commit | a24d2906c51e3740e6e0acf8f0093827b4e35bc3 (patch) | |
| tree | 1022bf70766a88d45dc71d6ea413ccd0fa14d07c /lib/Utils/logging.cpp | |
| parent | b7ea0e53e3375de6298b2f510302f75ebef4be4e (diff) | |
| parent | 42f0375d09931903965b36c87f17f805def956bf (diff) | |
| download | abrt-a24d2906c51e3740e6e0acf8f0093827b4e35bc3.tar.gz abrt-a24d2906c51e3740e6e0acf8f0093827b4e35bc3.tar.xz abrt-a24d2906c51e3740e6e0acf8f0093827b4e35bc3.zip | |
Merge branch 'master' of git://git.fedorahosted.org/git/abrt
Diffstat (limited to 'lib/Utils/logging.cpp')
| -rw-r--r-- | lib/Utils/logging.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Utils/logging.cpp b/lib/Utils/logging.cpp index cae609b..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); } @@ -118,16 +119,6 @@ void perror_msg(const char *s, ...) va_end(p); } -void simple_perror_msg_and_die(const char *s) -{ - perror_msg_and_die("%s", s); -} - -void simple_perror_msg(const char *s) -{ - perror_msg("%s", s); -} - void die_out_of_memory(void) { error_msg_and_die("Out of memory, exiting"); |
