talons

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

commit ea396ce934502170a544cc12c0289ae4599ea57e
parent 5ef69f3066f6152a058fb8c84d67df8584ec9d83
Author: Paul <paul@claws-mail.org>
Date:   Sat, 26 May 2018 11:48:08 +0100

fix gcc8 stringop-overflow warning

Diffstat:
Msrc/common/utils.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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'; \ } \ \