[Commits] [SCM] claws branch, master, updated. 3.16.0-183-g51dd96b

claws at claws-mail.org claws at claws-mail.org
Sat May 26 12:48:12 CEST 2018


The branch, master has been updated
       via  51dd96bfe9dd84de76e2dc6b751f2d17960c4c35 (commit)
      from  b0460fa371588d774e6c120b19b90f7d7b724a55 (commit)

Summary of changes:
 src/common/utils.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 51dd96bfe9dd84de76e2dc6b751f2d17960c4c35
Author: Paul <paul at claws-mail.org>
Date:   Sat May 26 11:48:08 2018 +0100

    fix gcc8 stringop-overflow warning

diff --git a/src/common/utils.h b/src/common/utils.h
index b3c088c..b37495e 100644
--- a/src/common/utils.h
+++ b/src/common/utils.h
@@ -140,7 +140,7 @@ guchar *g_base64_decode_wa(const gchar *text, gsize *out_len);
 		g_warning("can't allocate memory"); \
 		iffail; \
 	} else { \
-		strncpy(__tmp, str, len); \
+		memcpy(__tmp, str, len); \
 		__tmp[len] = '\0'; \
 	} \
  \

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


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list