From f3446e21a099f719102631f66a0ea849df9ff610 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 13 May 2011 14:39:37 +0200 Subject: [PATCH] log_store_pidgin_get_dir: get the length of orig_id instead of id (#37176) --- telepathy-logger/log-store-pidgin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/telepathy-logger/log-store-pidgin.c b/telepathy-logger/log-store-pidgin.c index e865647..cf1b9ee 100644 --- a/telepathy-logger/log-store-pidgin.c +++ b/telepathy-logger/log-store-pidgin.c @@ -342,7 +342,7 @@ log_store_pidgin_get_dir (TplLogStore *self, id = g_strdup_printf ("%s.chat", orig_id); else if (g_str_has_suffix (orig_id, "#1")) /* Small butterfly workaround */ - id = g_strndup (orig_id, strlen (id) - 2); + id = g_strndup (orig_id, strlen (orig_id) - 2); else id = g_strdup (orig_id); } -- 1.7.4.1