mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 16:47:28 +08:00
解决windows编译问题
This commit is contained in:
parent
fcbf7cb122
commit
7979fae23e
@ -228,9 +228,9 @@ bool RtspPlayer::handleAuthenticationFailure(const string ¶msStr) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
char realm[paramsStr.size()];
|
char realm[1024];
|
||||||
char nonce[paramsStr.size()];
|
char nonce[1024];
|
||||||
char stale[paramsStr.size()];
|
char stale[1024];
|
||||||
|
|
||||||
if (sscanf(paramsStr.data(), "Digest realm=\"%[^\"]\", nonce=\"%[^\"]\", stale=%[a-zA-Z]", realm, nonce, stale) == 3) {
|
if (sscanf(paramsStr.data(), "Digest realm=\"%[^\"]\", nonce=\"%[^\"]\", stale=%[a-zA-Z]", realm, nonce, stale) == 3) {
|
||||||
(*this)[kRtspRealm] = realm;
|
(*this)[kRtspRealm] = realm;
|
||||||
|
Loading…
Reference in New Issue
Block a user