Bug 469949 - PR_sscanf with format %lld into a PRTime is not portable. Patch by Martin Husemann <martin@NetBSD.ORG>, r=smorgan, sr=pink
git-svn-id: svn://10.0.0.236/trunk@255879 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1078,7 +1078,9 @@ nsSimpleGlobalHistory::GetRowValue(nsIMdbRow *aRow, mdb_column aCol,
|
||||
if (!yarn.mYarn_Fill || !yarn.mYarn_Buf)
|
||||
return NS_OK;
|
||||
|
||||
PR_sscanf((const char*)yarn.mYarn_Buf, "%lld", aResult);
|
||||
long long ld;
|
||||
PR_sscanf((const char*)yarn.mYarn_Buf, "%lld", &ld);
|
||||
*aResult = ld;
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user