projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b0460fa
)
fix gcc8 stringop-overflow warning
author
Paul
<paul@claws-mail.org>
Sat, 26 May 2018 10:48:08 +0000
(11:48 +0100)
committer
Paul
<paul@claws-mail.org>
Sat, 26 May 2018 10:48:08 +0000
(11:48 +0100)
src/common/utils.h
patch
|
blob
|
history
diff --git
a/src/common/utils.h
b/src/common/utils.h
index b3c088c61ecea1479226defa09df3409de8c261f..b37495e3b855a770fe41da898416080dadcdb147 100644
(file)
--- 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 { \
g_warning("can't allocate memory"); \
iffail; \
} else { \
-
strn
cpy(__tmp, str, len); \
+
mem
cpy(__tmp, str, len); \
__tmp[len] = '\0'; \
} \
\
__tmp[len] = '\0'; \
} \
\