Commit 21d48e02 authored by mstorsjo's avatar mstorsjo

httpauth: Fix the length passed to av_strlcat

Since the buffer always was large enough, this bug didn't have any
effect in practice.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23447 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 5ae7f24b
......@@ -303,7 +303,7 @@ char *ff_http_auth_create_response(HTTPAuthState *state, const char *auth,
snprintf(authstr, len, "Authorization: Basic ");
ptr = authstr + strlen(authstr);
av_base64_encode(ptr, auth_b64_len, auth, strlen(auth));
av_strlcat(ptr, "\r\n", len);
av_strlcat(ptr, "\r\n", len - (ptr - authstr));
} else if (state->auth_type == HTTP_AUTH_DIGEST) {
char *username = av_strdup(auth), *password;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment