diff options
author | Serge Martin <[email protected]> | 2020-05-10 18:23:25 +0200 |
---|---|---|
committer | Serge Martin <[email protected]> | 2020-05-11 12:54:41 +0200 |
commit | 9c839e6394028a84c97ebd0a725ff512aeb75ce6 (patch) | |
tree | 79a1cb13b026d80628362d2726ea5a7632cda40e /src | |
parent | 39d59cf87a3974142cb69dd52386d96b5e6e7dd9 (diff) |
amd/common: Fix incorrect use of asprintf instead of vasprintf
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/amd/common/ac_rtld.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/amd/common/ac_rtld.c b/src/amd/common/ac_rtld.c index 7c35e72543d..e1552ec3082 100644 --- a/src/amd/common/ac_rtld.c +++ b/src/amd/common/ac_rtld.c @@ -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); |