summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-07 19:54:15 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-05-07 19:54:15 +0200
commitb0bd88abfbe3f1deb8fad7c1aa71e5692fb7faf3 (patch)
tree8cd3ca59058c907e2de888fe117b3a48566970e2
parent6c804046b36cdb413a78e2cb3225f9980c5842dd (diff)
downloadxine-lib-b0bd88abfbe3f1deb8fad7c1aa71e5692fb7faf3.tar.gz
xine-lib-b0bd88abfbe3f1deb8fad7c1aa71e5692fb7faf3.tar.bz2
Again, use asprintf() rather than malloc()+sprintf().
-rw-r--r--src/post/mosaico/mosaico.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/post/mosaico/mosaico.c b/src/post/mosaico/mosaico.c
index 37551aba5..1222810aa 100644
--- a/src/post/mosaico/mosaico.c
+++ b/src/post/mosaico/mosaico.c
@@ -178,8 +178,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;
- this->pip[i].input_name = (char *)malloc(sizeof("video in ") + 10);
- snprintf(this->pip[i].input_name, sizeof("video in ") + 10, "video in %d", i+1);
+ asprintf(&(this->pip[i].input_name), "video in %d", i+1);
port = _x_post_intercept_video_port(&this->post, video_target[0], &input, NULL);
port->new_port.close = mosaico_close;