dict @ 6ed576974dec969ad2745a451a6f680a3cdbcfc4

diff --git a/dict/main.c b/dict/main.c
index 98608ccc050f069605e61e62f4af3b65775cc990..18aeb63dec53940c5354b71d584f04cc4e8682ad 100644
--- a/dict/main.c
+++ b/dict/main.c
@@ -72,11 +72,9 @@ }
 
 void search(char *sch, int len)
 {
-    char s[len+2];
 
-    sprintf(s, "%%%*s%%", len, sch);
 
-    LIST* l = data_select(data, s, len+2, LINES-5);
+    LIST* l = data_select(data, sch, len, LINES-5);
 
     for (int y = 0; y < (LINES-5); y++) {
         move(y, 0);
diff --git a/lib/data.c b/lib/data.c
index 1c1a754f5260b5e15d9f532ad9667689f74f387f..afbbbb116e04e1880add4f47bad9704411f011ca 100644
--- a/lib/data.c
+++ b/lib/data.c
@@ -6,8 +6,8 @@ #include "data.h"
 #include "../lib/util.h"
 
 const char *insert_into = "INSERT INTO words (LINE) VALUES($VVV);";
-const char *select_words = "SELECT Id, Line FROM words WHERE line like $VVV LIMIT $NNN;";
-const char *create_table =  "CREATE TABLE IF NOT EXISTS words (ID INTEGER PRIMARY KEY AUTOINCREMENT, LINE TEXT NOT NULL);";
+const char *select_words = "SELECT Id, Line FROM words WHERE line MATCH $VVV LIMIT $NNN;";
+const char *create_table =  "CREATE VIRTUAL TABLE IF NOT EXISTS words USING fts4 (ID INTEGER PRIMARY KEY AUTOINCREMENT, LINE TEXT NOT NULL);";
 
 Data* new_data(const char* con)
 {
diff --git a/lib/list.c b/lib/list.c
index 52feb767f49eaf205b9926a20c946d0dd570a959..be1ac61c083c7462c3eb2d04b2c3f58080a4dea5 100644
--- a/lib/list.c
+++ b/lib/list.c
@@ -36,9 +36,6 @@ }
 
 void list_free(LIST* list)
 {
-    for (unsigned int x = 0; x < list->size; x++)
-        free(list->list[x]);
-
     free(list->list);
     free(list);
 }