head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.10 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.8 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.6 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.4 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.2 pkgsrc-2009Q4-base:1.3 pkgsrc-2009Q2:1.2.0.4 pkgsrc-2009Q2-base:1.2 pkgsrc-2009Q1:1.2.0.2 pkgsrc-2009Q1-base:1.2 pkgsrc-2008Q4:1.1.1.1.0.10 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-2008Q3:1.1.1.1.0.8 pkgsrc-2008Q3-base:1.1.1.1 cube-native-xorg:1.1.1.1.0.6 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.4 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.2 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.3 date 2009.09.22.13.17.30; author tnn; state dead; branches; next 1.2; 1.2 date 2009.01.05.09.58.36; author martin; state Exp; branches; next 1.1; 1.1 date 2008.06.28.10.01.07; author tnn; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.06.28.10.01.07; author tnn; state Exp; branches; next ; desc @@ 1.3 log @Send firefox3 on it's way to the happy hunting ground. @ text @$NetBSD: patch-eb,v 1.2 2009/01/05 09:58:36 martin Exp $ --- xpfe/components/history/src/nsGlobalHistory.cpp.orig 2007-12-03 05:25:14.000000000 +0100 +++ xpfe/components/history/src/nsGlobalHistory.cpp @@@@ -304,7 +304,9 @@@@ matchAgeInDaysCallback(nsIMdbRow *row, v if (err != 0) return PR_FALSE; PRTime rowDate; - PR_sscanf((const char*)yarn.mYarn_Buf, "%lld", &rowDate); + long long ld; + PR_sscanf((const char*)yarn.mYarn_Buf, "%lld", &ld); + rowDate = ld; PRInt32 days = matchSearchTerm->globalHist->GetAgeInDays(rowDate); @@@@ -1000,7 +1002,9 @@@@ nsGlobalHistory::GetRowValue(nsIMdbRow * 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; } @@@@ -1076,6 +1080,9 @@@@ nsGlobalHistory::SetPageTitle(nsIURI *aU rv = aURI->GetSpec(URISpec); NS_ENSURE_SUCCESS(rv, rv); + if (URISpec.Length() > HISTORY_URI_LENGTH_MAX) + URISpec.Left(URISpec, HISTORY_URI_LENGTH_MAX); + nsCOMPtr row; rv = FindRow(kToken_URLColumn, URISpec.get(), getter_AddRefs(row)); @ 1.2 log @Fix a few more LP64 bit bugs (may be in dead code, but who knows) and fix the xptc call stubs for sparc64 so that tree views with a javascript data source (like history and about:config) now work. All changes already reported upstream. @ text @d1 1 a1 1 $NetBSD: patch-eb,v 1.1.1.1 2008/06/28 10:01:07 tnn Exp $ @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD: patch-eb,v 1.2 2007/05/12 13:53:11 ghen Exp $ d3 1 a3 1 --- xpfe/components/history/src/nsGlobalHistory.cpp.orig 2006-02-02 20:55:17.000000000 +0100 d5 23 a27 1 @@@@ -1055,6 +1055,9 @@@@ nsGlobalHistory::SetPageTitle(nsIURI *aU @ 1.1.1.1 log @Import firefox3-3.0 as www/firefox3. This is a new major release of the popular Firefox browser from Mozilla. Based on Gecko 1.9, it brings improvements in the areas of performance, stability, rendering correctness, security, usability and more. Release notes: http://www.mozilla.com/en-US/firefox/3.0/releasenotes/ @ text @@