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:
alqahira%ardisson.org
2009-01-21 19:09:02 +00:00
parent 18a2505b7e
commit f8b273502a

View File

@@ -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;
}