diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-18 21:56:02 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-18 21:56:02 +0100 |
commit | 5413ef667ff604985850f95e39b4266852356d85 (patch) | |
tree | 86769efa051020b9d1981b4536c4d34e8a89b391 /src/input/libreal/real.c | |
parent | cf22e0aa95b17a8ea15f9d3cc3fb6b458aac8ed3 (diff) | |
download | xine-lib-5413ef667ff604985850f95e39b4266852356d85.tar.gz xine-lib-5413ef667ff604985850f95e39b4266852356d85.tar.bz2 |
Use calloc() when allocating an array of elements.
(transplanted from e9e85d6bcc7e9aafb1dc019f3505de2dafe940bf)
--HG--
extra : transplant_source : %E9%E8%5Dk%CC%7E%9A%AF%B1%DC%01%9F5%05%DE-%AF%E9%40%BF
Diffstat (limited to 'src/input/libreal/real.c')
-rw-r--r-- | src/input/libreal/real.c | 2 |
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); |