summaryrefslogtreecommitdiff
path: root/www/firefox/patches/patch-ak
blob: 1db3297121f7a6f82ea179c6c77a9cda583f6a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-ak,v 1.7 2009/08/05 02:43:47 tnn Exp $

--- toolkit/components/places/src/nsMorkHistoryImporter.cpp.orig	2009-06-29 18:15:22.000000000 +0200
+++ toolkit/components/places/src/nsMorkHistoryImporter.cpp
@@ -148,9 +148,12 @@ AddToHistoryCB(const nsCSubstring &aRowI
     }
 
     PRTime date;
-    if (PR_sscanf(values[kLastVisitColumn].get(), "%lld", &date) != 1) {
+    long long ld;
+    if (PR_sscanf(values[kLastVisitColumn].get(), "%lld", &ld) != 1) {
       date = -1;
-    }
+    } else {
+      date = ld;
+   }
 
     PRBool isTyped = values[kTypedColumn].EqualsLiteral("1");
     PRInt32 transition = isTyped ?