From 9f105cfe9059df4a9a1f5278679151a5d9c387f6 Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Mon, 10 Oct 2011 12:41:10 +0300 Subject: Fixed asprintf usage --- src/post/mosaico/mosaico.c | 2 +- src/post/planar/pp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/post') diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c index ec46e1ca0..9a9a9911c 100644 --- a/src/post/mosaico/mosaico.c +++ b/src/post/mosaico/mosaico.c @@ -182,7 +182,7 @@ static post_plugin_t *mosaico_open_plugin(post_class_t *class_gen, int inputs, this->pip[i].y = 50; this->pip[i].w = 150; this->pip[i].h = 150; - asprintf(&(this->pip[i].input_name), "video in %d", i+1); + this->pip[i].input_name = _x_asprintf("video in %d", i+1); port = _x_post_intercept_video_port(&this->post, video_target[0], &input, NULL); port->new_port.close = mosaico_close; diff --git a/src/post/planar/pp.c b/src/post/planar/pp.c index 6b805e20b..3753c2ce2 100644 --- a/src/post/planar/pp.c +++ b/src/post/planar/pp.c @@ -132,7 +132,7 @@ static char * get_help (void) { static char *help = NULL; if( !help ) - asprintf(&help, "%s%s%s", help1, help2, pp_help); + help = _x_asprintf("%s%s%s", help1, help2, pp_help); return help; } -- cgit v1.2.3