fix gcc8 stringop-overflow warning
authorPaul <paul@claws-mail.org>
Sat, 26 May 2018 10:48:08 +0000 (11:48 +0100)
committerPaul <paul@claws-mail.org>
Sat, 26 May 2018 10:48:08 +0000 (11:48 +0100)
src/common/utils.h

index b3c088c..b37495e 100644 (file)
@@ -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'; \
        } \
  \