summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-07-04 15:25:46 +0200
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2008-07-04 15:25:46 +0200
commit53d779e680b56506f5e882fe777206ef45e0ff79 (patch)
treeed3df40f00f78fc5d6e940f065e8c92d4f7bfffe /src
parentb627f62de4dbc6c3b56126bf26be0de7ad4f65d3 (diff)
downloadxine-lib-53d779e680b56506f5e882fe777206ef45e0ff79.tar.gz
xine-lib-53d779e680b56506f5e882fe777206ef45e0ff79.tar.bz2
Use calloc to allocate the area for the OSD.
--HG-- extra : transplant_source : %99%9B%D5%B3Ro%87%BFV%E9%2BY%AA%83QE/%CD%5D%ED
Diffstat (limited to 'src')
-rw-r--r--src/xine-engine/osd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xine-engine/osd.c b/src/xine-engine/osd.c
index 36ce47e44..05acd4779 100644
--- a/src/xine-engine/osd.c
+++ b/src/xine-engine/osd.c
@@ -145,7 +145,7 @@ static osd_object_t *XINE_MALLOC osd_new_object (osd_renderer_t *this, int width
osd->width = width;
osd->height = height;
- osd->area = xine_xmalloc( width * height );
+ osd->area = calloc(width, height);
osd->x1 = width;
osd->y1 = height;