summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-13 14:39:37 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-05-13 14:39:37 +0200
commitf3446e21a099f719102631f66a0ea849df9ff610 (patch)
tree19470534e41a48686fa48036826f32b38a7c5304
parente266f28db961d3026404c72b21a6b6071a2d4e3d (diff)
downloadtelepathy-logger-f3446e21a099f719102631f66a0ea849df9ff610.tar.gz
log_store_pidgin_get_dir: get the length of orig_id instead of id (#37176)
-rw-r--r--telepathy-logger/log-store-pidgin.c2
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);
}