Commit de6599e0 de6599e04a21054e73e050c1606e531e5bfb61a6 by Sergey Poznyakoff

(mu_syslog_error_printer): Bugfix.

1 parent ef05db99
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;
......