From 345cf7fab1f6c681c502e5e90de717afcfd10480 Mon Sep 17 00:00:00 2001 From: "benjamin%smedbergs.us" Date: Tue, 18 Jul 2006 17:03:41 +0000 Subject: [PATCH] Fix incorrect sscanf r=bryner Original committer: brettw%gmail.com Original revision: 1.15 Original date: 2006/01/04 22:37:07 --- toolkit/components/places/src/nsNavHistoryQuery.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolkit/components/places/src/nsNavHistoryQuery.cpp b/toolkit/components/places/src/nsNavHistoryQuery.cpp index fa162759d30..2d5be6df0ec 100644 --- a/toolkit/components/places/src/nsNavHistoryQuery.cpp +++ b/toolkit/components/places/src/nsNavHistoryQuery.cpp @@ -482,7 +482,7 @@ nsNavHistory::TokensToQueries(const nsTArray& aTokens, // folders: FIXME use folder name??? } else if (kvp.key.EqualsLiteral(QUERYKEY_FOLDERS)) { PRInt64 folder; - if (PR_sscanf(kvp.value.get(), "%lld", folder) == 1) { + if (PR_sscanf(kvp.value.get(), "%lld", &folder) == 1) { NS_ENSURE_TRUE(folders.AppendElement(folder), NS_ERROR_OUT_OF_MEMORY); } else { NS_WARNING("folders value in query is invalid, ignoring");