From: Colin Leroy Date: Thu, 5 Jun 2014 14:50:42 +0000 (+0200) Subject: Fix off-by-one X-Git-Tag: 3.10.1~30 X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=commitdiff_plain;h=8bab691abc2150e2f047049a356347370223cfc4 Fix off-by-one --- 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,