diff options
Diffstat (limited to 'main/utils.c')
-rw-r--r-- | main/utils.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/utils.c b/main/utils.c index 8997305cb..3f21eb341 100644 --- a/main/utils.c +++ b/main/utils.c @@ -1070,9 +1070,8 @@ int ast_pthread_create_stack(pthread_t *thread, pthread_attr_t *attr, void *(*st a->start_routine = start_routine; a->data = data; start_routine = dummy_start; - if (asprintf(&a->name, "%-20s started at [%5d] %s %s()", + if (ast_asprintf(&a->name, "%-20s started at [%5d] %s %s()", start_fn, line, file, caller) < 0) { - ast_log(LOG_WARNING, "asprintf() failed: %s\n", strerror(errno)); a->name = NULL; } data = a; |