[Commits] [SCM] claws branch, master, updated. 3.10.0-58-g81dbf3d

Colin colin at claws-mail.org
Thu Jun 5 17:57:54 CEST 2014


The branch master of project "claws" (Claws Mail) has been updated
       via  81dbf3df2f3b5e3bd761c020694115a5f71c46d8 (commit)
      from  6cfe20b1b0bbc3daa1515699101963d218df539f (commit)


- Log -----------------------------------------------------------------
commit 81dbf3df2f3b5e3bd761c020694115a5f71c46d8
Author: Colin Leroy <colin at colino.net>
Date:   Thu Jun 5 17:57:46 2014 +0200

    Correct fix for the memmove

diff --git a/src/account.c b/src/account.c
index a90f370..3c33156 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,

-----------------------------------------------------------------------

Summary of changes:
 src/account.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list