Commit 57690595 576905957f1423b0bd98eea1749cd232c9bb0796 by Sergey Poznyakoff

(_sieve_action_log): Use vasprintf.

1 parent 7b911202
...@@ -234,7 +234,7 @@ _sieve_action_log (void *user_name, ...@@ -234,7 +234,7 @@ _sieve_action_log (void *user_name,
234 if (fmt && strlen (fmt)) 234 if (fmt && strlen (fmt))
235 { 235 {
236 char *diag = NULL; 236 char *diag = NULL;
237 asprintf (&diag, fmt, ap); 237 vasprintf (&diag, fmt, ap);
238 syslog (LOG_NOTICE, "(user %s) %s: %s", (char*) user_name, text, diag); 238 syslog (LOG_NOTICE, "(user %s) %s: %s", (char*) user_name, text, diag);
239 free (diag); 239 free (diag);
240 } 240 }
......