summaryrefslogtreecommitdiff
path: root/src/libreal/real_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libreal/real_common.c')
-rw-r--r--src/libreal/real_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libreal/real_common.c b/src/libreal/real_common.c
index a22abf789..bcdd7ff00 100644
--- a/src/libreal/real_common.c
+++ b/src/libreal/real_common.c
@@ -155,7 +155,7 @@ void *_x_real_codec_open(xine_stream_t *const stream, const char *const path,
char *codecpath = NULL;
void *codecmodule = NULL;
- asprintf(&codecpath, "%s/%s", path, codec_name);
+ codecpath = _x_asprintf("%s/%s", path, codec_name);
if ( (codecmodule = dlopen(codecpath, RTLD_NOW)) ) {
free(codecpath);
return codecmodule;
@@ -167,7 +167,7 @@ void *_x_real_codec_open(xine_stream_t *const stream, const char *const path,
free(codecpath);
if ( codec_alternate ) {
- asprintf(&codecpath, "%s/%s", path, codec_alternate);
+ codecpath = _x_asprintf("%s/%s", path, codec_alternate);
if ( (codecmodule = dlopen(codecpath, RTLD_NOW)) ) {
free(codecpath);
return codecmodule;