diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-02 22:08:57 +0000 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2010-04-02 22:08:57 +0000 |
commit | ff273ddae7c2f683715ff7e44ac9b8d1e1b93d8e (patch) | |
tree | 0866ba60f373c5d758610ed3c1fd6a325db1fc38 | |
parent | f3c68c5b453b7a79f9ce785ecb6a8ceaee676072 (diff) | |
download | ffmpeg-ff273ddae7c2f683715ff7e44ac9b8d1e1b93d8e.tar.gz |
Fix buffer size; should hold 2 32-bit integers in hex = 16 chars + terminating
zero, so should be 17 bytes, not 9.
Originally committed as revision 22786 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/httpauth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/httpauth.c b/libavformat/httpauth.c index d82f3a98f1..cef27569a8 100644 --- a/libavformat/httpauth.c +++ b/libavformat/httpauth.c @@ -187,7 +187,7 @@ static char *make_digest_auth(HTTPAuthState *state, const char *username, DigestParams *digest = &state->digest_params; int len; uint32_t cnonce_buf[2]; - char cnonce[9]; + char cnonce[17]; char nc[9]; int i; char A1hash[33], A2hash[33], response[33]; |