Fix for bug 80789 Changing hashing algorithm for netscape.cfg

r=bnesse and sr=alecf
checking in for chipc@netscape.com
This commit is contained in:
mitesh%netscape.com 2001-09-18 22:05:57 +00:00
parent 0d9020937e
commit 92f1da191d

View File

@ -446,8 +446,8 @@ static nsresult openPrefFileSpec(nsIFileSpec* aFilespec, PRBool aIsErrorFatal, P
long fileLength = PL_strlen(readBuf);
if (aVerifyHash) {
const int obscure_value = 7;
// Unobscure file by subtracting some value from every char.
const int obscure_value = 13;
// Unobscure file by subtracting some value from every char - old value was 7
long i;
for (i = 0; i < fileLength; i++)
readBuf[i] -= obscure_value;