From 8bab691abc2150e2f047049a356347370223cfc4 Mon Sep 17 00:00:00 2001 From: Colin Leroy Date: Thu, 5 Jun 2014 16:50:42 +0200 Subject: [PATCH] Fix off-by-one --- src/account.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/account.c b/src/account.c index a90f370b3..f1eeeb195 100644 --- a/src/account.c +++ b/src/account.c @@ -210,7 +210,7 @@ void account_read_config_all(void) while (fgets(buf, sizeof(buf), fp) != NULL) { if (!strncmp(buf, "[Account: ", 10)) { strretchomp(buf); - memmove(buf, buf + 1, strlen(buf)); + memmove(buf, buf + 1, strlen(buf) - 1); buf[strlen(buf) - 1] = '\0'; debug_print("Found label: %s\n", buf); ac_label_list = g_slist_append(ac_label_list, -- 2.25.1