(mu_syslog_error_printer): Bugfix.
Showing
1 changed file
with
2 additions
and
2 deletions
1 | /* GNU Mailutils -- a suite of utilities for electronic mail | 1 | /* GNU Mailutils -- a suite of utilities for electronic mail |
2 | Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. | 2 | Copyright (C) 1999, 2000, 2001, 2005 Free Software Foundation, Inc. |
3 | 3 | ||
4 | This library is free software; you can redistribute it and/or | 4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Lesser General Public | 5 | modify it under the terms of the GNU Lesser General Public |
... | @@ -44,7 +44,7 @@ mu_syslog_error_printer (const char *fmt, va_list ap) | ... | @@ -44,7 +44,7 @@ mu_syslog_error_printer (const char *fmt, va_list ap) |
44 | vsyslog (LOG_CRIT, fmt, ap); | 44 | vsyslog (LOG_CRIT, fmt, ap); |
45 | #else | 45 | #else |
46 | char buf[128]; | 46 | char buf[128]; |
47 | snprintf (buf, sizeof buf, fmt, ap); | 47 | vsnprintf (buf, sizeof buf, fmt, ap); |
48 | syslog (LOG_CRIT, "%s", buf); | 48 | syslog (LOG_CRIT, "%s", buf); |
49 | #endif | 49 | #endif |
50 | return 0; | 50 | return 0; | ... | ... |
-
Please register or sign in to post a comment