aboutsummaryrefslogtreecommitdiffstats
path: root/lib/history/ephy-history-service-hosts-table.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/history/ephy-history-service-hosts-table.c')
-rw-r--r--lib/history/ephy-history-service-hosts-table.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/history/ephy-history-service-hosts-table.c b/lib/history/ephy-history-service-hosts-table.c
index 9312d739c..eb64e4651 100644
--- a/lib/history/ephy-history-service-hosts-table.c
+++ b/lib/history/ephy-history-service-hosts-table.c
@@ -318,7 +318,7 @@ ephy_history_service_find_host_rows (EphyHistoryService *self, EphyHistoryQuery
}
for (substring = query->substring_list; substring != NULL; substring = substring->next) {
int j = 4;
- char *string = g_strdup_printf ("%%%s%%", (char*)substring->data);
+ char *string = ephy_sqlite_create_match_pattern ((char*)substring->data);
while (j--)
if (ephy_sqlite_statement_bind_string (statement, i++, string, &error) == FALSE) {
g_error ("Could not build hosts table query statement: %s", error->message);