From 18c1ebc14526cf1a35465d6545c0506c38d450f5 Mon Sep 17 00:00:00 2001 From: Bogdan-Andrei Iancu Date: Wed, 26 Aug 2015 19:01:50 +0300 Subject: [PATCH] Fix interpreting the "values" content from DB Alternative to #618 Credits go to Minh PHAN ( @qmphan) --- modules/dialog/dlg_db_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dialog/dlg_db_handler.c b/modules/dialog/dlg_db_handler.c index 80877615c75..4f01af90581 100644 --- a/modules/dialog/dlg_db_handler.c +++ b/modules/dialog/dlg_db_handler.c @@ -1615,7 +1615,7 @@ static int sync_dlg_db_mem(void) * and replace with new one */ if (!VAL_NULL(values+18)) read_dialog_vars( VAL_STR(values+18).s, - VAL_STR(values+18).len, known_dlg); + strlen(VAL_STR(values+18).s), known_dlg); /* profiles - do not insert into a profile * is dlg is already in that profile*/