fix gcc8 stringop-overflow warning
[claws.git] / 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 { \
                g_warning("can't allocate memory"); \
                iffail; \
        } else { \
-               strncpy(__tmp, str, len); \
+               memcpy(__tmp, str, len); \
                __tmp[len] = '\0'; \
        } \
  \
                __tmp[len] = '\0'; \
        } \
  \