(_sieve_action_log): Use vasprintf.
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment