mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
amd/common: Fix incorrect use of asprintf instead of vasprintf
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
39d59cf87a
commit
9c839e6394
1 changed files with 2 additions and 2 deletions
|
|
@ -82,9 +82,9 @@ struct ac_rtld_part {
|
|||
static void report_erroraf(const char *fmt, va_list va)
|
||||
{
|
||||
char *msg;
|
||||
int ret = asprintf(&msg, fmt, va);
|
||||
int ret = vasprintf(&msg, fmt, va);
|
||||
if (ret < 0)
|
||||
msg = "(asprintf failed)";
|
||||
msg = "(vasprintf failed)";
|
||||
|
||||
fprintf(stderr, "ac_rtld error: %s\n", msg);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue