diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-19 01:28:54 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-19 01:28:54 +0100 |
commit | a7047f7c6c5d3b552afb51d7570f1a500ba868aa (patch) | |
tree | af6c33d55be84b7038a6ebe8e547b6044f25f853 /src | |
parent | d4149504575cf86fe492bf9ba1390d9ca33ab484 (diff) | |
download | xine-lib-a7047f7c6c5d3b552afb51d7570f1a500ba868aa.tar.gz xine-lib-a7047f7c6c5d3b552afb51d7570f1a500ba868aa.tar.bz2 |
Use a zeroed allocation for buf rather than using memset.
Diffstat (limited to 'src')
-rw-r--r-- | src/input/libreal/real.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/input/libreal/real.c b/src/input/libreal/real.c index 3a01e546a..29376868c 100644 --- a/src/input/libreal/real.c +++ b/src/input/libreal/real.c @@ -316,14 +316,13 @@ void real_calc_response_and_checksum (char *response, char *chksum, char *challe int ch_len, resp_len; int i; char *ptr; - char buf[128]; + char buf[128] = { 0, }; /* initialize return values */ memset(response, 0, 64); memset(chksum, 0, 34); /* initialize buffer */ - memset(buf, 0, 128); ptr=buf; _X_BE_32C(ptr, 0xa1e9149d); ptr+=4; |