зеркало из https://github.com/mozilla/gecko-dev.git
Fixing the solaris bustage.
This commit is contained in:
Родитель
e2193efb9c
Коммит
5282f49d2c
|
@ -2758,10 +2758,10 @@ nsHTTPChannel::SetReferrer(nsIURI *referrer, PRUint32 referrerLevel)
|
||||||
PRUint32 prehostLocation = ref.Find(prehost.get(), PR_TRUE);
|
PRUint32 prehostLocation = ref.Find(prehost.get(), PR_TRUE);
|
||||||
PRInt32 remainingStart = prehostLocation +
|
PRInt32 remainingStart = prehostLocation +
|
||||||
PL_strlen(prehost.get()) + 1; // 1 for @
|
PL_strlen(prehost.get()) + 1; // 1 for @
|
||||||
ref = Substring(NS_READABLE_CAST(char*, ref),
|
ref = Substring(NS_READABLE_CAST(char, ref),
|
||||||
(PRUint32) 0,
|
(PRUint32) 0,
|
||||||
(PRUint32) prehostLocation) +
|
(PRUint32) prehostLocation) +
|
||||||
Substring(NS_READABLE_CAST(char*, ref),
|
Substring(NS_READABLE_CAST(char, ref),
|
||||||
(PRUint32) remainingStart,
|
(PRUint32) remainingStart,
|
||||||
(PRUint32) ref.Length()-remainingStart);
|
(PRUint32) ref.Length()-remainingStart);
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче