Bug 282643 Rename two of three buf local variables in nsHttpChannel::SetupTransaction

r=biesi sr=darin


git-svn-id: svn://10.0.0.236/trunk@169591 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org 2005-02-22 07:31:18 +00:00
parent 1bb6a6e8c1
commit 932eb1a5aa

View File

@ -541,9 +541,9 @@ nsHttpChannel::SetupTransaction()
}
if (mResuming) {
char buf[32];
PR_snprintf(buf, sizeof(buf), "bytes=%llu-", mStartPos);
mRequestHead.SetHeader(nsHttp::Range, nsDependentCString(buf));
char byteRange[32];
PR_snprintf(byteRange, sizeof(byteRange), "bytes=%llu-", mStartPos);
mRequestHead.SetHeader(nsHttp::Range, nsDependentCString(byteRange));
if (!mEntityID.IsEmpty()) {
// Also, we want an error if this resource changed in the meantime
@ -554,9 +554,9 @@ nsHttpChannel::SetupTransaction()
mEntityID.BeginReading(slash);
if (FindCharInReadable('/', slash, end)) {
nsCAutoString buf;
nsCAutoString ifMatch;
mRequestHead.SetHeader(nsHttp::If_Match,
NS_UnescapeURL(Substring(start, slash), 0, buf));
NS_UnescapeURL(Substring(start, slash), 0, ifMatch));
++slash; // Incrementing, so that searching for '/' won't find
// the same slash again