Fix minor issue with scanf

Bug 123335 sr=hyatt r=dcone
This commit is contained in:
rods%netscape.com 2002-02-06 13:01:37 +00:00
parent a5d896f2b5
commit 69ad92f66b

View File

@ -1439,7 +1439,7 @@ nsresult nsPrintOptions::ReadPrefDouble(nsIPref * aPref,
char * str = nsnull;
nsresult rv = aPref->CopyCharPref(aPrefId, &str);
if (NS_SUCCEEDED(rv) && str) {
sscanf(str, "%6.2", &aVal);
sscanf(str, "%6.2f", &aVal);
nsMemory::Free(str);
}
return rv;