1 $NetBSD: patch-ea,v 1.2 2009/01/05 09:58:36 martin Exp $
3 --- toolkit/components/history/src/nsGlobalHistory.cpp.orig 2006-02-02 20:55:17.000000000 +0100
4 +++ toolkit/components/history/src/nsGlobalHistory.cpp
5 @@ -322,7 +322,9 @@ matchAgeInDaysCallback(nsIMdbRow *row, v
6 if (err != 0) return PR_FALSE;
9 - PR_sscanf((const char*)yarn.mYarn_Buf, "%lld", &rowDate);
11 + PR_sscanf((const char*)yarn.mYarn_Buf, "%lld", &ld);
14 PRInt32 days = GetAgeInDays(matchSearchTerm->now, rowDate);
16 @@ -1067,7 +1069,9 @@ nsGlobalHistory::GetRowValue(nsIMdbRow *
17 if (!yarn.mYarn_Fill || !yarn.mYarn_Buf)
20 - PR_sscanf((const char*)yarn.mYarn_Buf, "%lld", aResult);
22 + PR_sscanf((const char*)yarn.mYarn_Buf, "%lld", &ld);
27 @@ -1153,6 +1157,9 @@ nsGlobalHistory::SetPageTitle(nsIURI *aU
28 rv = aURI->GetSpec(URISpec);
29 NS_ENSURE_SUCCESS(rv, rv);
31 + if (URISpec.Length() > HISTORY_URI_LENGTH_MAX)
32 + URISpec.Left(URISpec, HISTORY_URI_LENGTH_MAX);
34 nsCOMPtr<nsIMdbRow> row;
35 rv = FindRow(kToken_URLColumn, URISpec.get(), getter_AddRefs(row));