talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 8bab691abc2150e2f047049a356347370223cfc4
parent 834a78111238efb193c57e8c347660b63edbf1c3
Author: Colin Leroy <colin@colino.net>
Date:   Thu,  5 Jun 2014 16:50:42 +0200

Fix off-by-one

Diffstat:
Msrc/account.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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,