X-Git-Url: http://git.claws-mail.org/?p=claws.git;a=blobdiff_plain;f=src%2Faccount.c;h=3c3315686a93cc5ef1a44303f4042e2cb63069e6;hp=a90f370b3dbcdf52c0d5152ada573b51dd740401;hb=81dbf3df2f3b5e3bd761c020694115a5f71c46d8;hpb=6cfe20b1b0bbc3daa1515699101963d218df539f diff --git a/src/account.c b/src/account.c index a90f370b3..3c3315686 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, sizeof(buf) - 1); buf[strlen(buf) - 1] = '\0'; debug_print("Found label: %s\n", buf); ac_label_list = g_slist_append(ac_label_list,