Browse code

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

Ronald S. Bultje authored on 2010/04/03 07:08:57
Showing 1 changed files
... ...
@@ -187,7 +187,7 @@ static char *make_digest_auth(HTTPAuthState *state, const char *username,
187 187
     DigestParams *digest = &state->digest_params;
188 188
     int len;
189 189
     uint32_t cnonce_buf[2];
190
-    char cnonce[9];
190
+    char cnonce[17];
191 191
     char nc[9];
192 192
     int i;
193 193
     char A1hash[33], A2hash[33], response[33];