summaryrefslogtreecommitdiff
path: root/src/input/libreal/real.c
diff options
context:
space:
mode:
authorDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 21:56:02 +0100
committerDiego 'Flameeyes' Pettenò <flameeyes@gmail.com>2007-12-18 21:56:02 +0100
commit8420c9a0ec8eb05b30fc5e48e062b14f1af095f6 (patch)
tree543c947df94c58827642991de3436b92d203284a /src/input/libreal/real.c
parent213baa59e3644093f5b208218e8d233d95fd4a74 (diff)
downloadxine-lib-8420c9a0ec8eb05b30fc5e48e062b14f1af095f6.tar.gz
xine-lib-8420c9a0ec8eb05b30fc5e48e062b14f1af095f6.tar.bz2
Use calloc() when allocating an array of elements.
Diffstat (limited to 'src/input/libreal/real.c')
-rw-r--r--src/input/libreal/real.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/libreal/real.c b/src/input/libreal/real.c
index 9ea65d9df..925b0fdf8 100644
--- a/src/input/libreal/real.c
+++ b/src/input/libreal/real.c
@@ -660,7 +660,7 @@ rmff_header_t *real_setup_and_get_header(rtsp_t *rtsp_session, uint32_t bandwid
lprintf("Stream description size: %i\n", size);
- description = malloc(sizeof(char)*(size+1));
+ description = calloc(size+1, sizeof(char));
if( rtsp_read_data(rtsp_session, description, size) <= 0) {
xine_buffer_free(buf);