Avoid GCC warning (-Wstringop-truncation)
This commit is contained in:
1 parent
0171c49413
commit
e46bbaffb9
1 file changed
+1
@@ -2057,6 +2057,7 @@ namespace m_lib {
|
||||
{ \
|
||||
M_BOUNDED_STR1NG_CONTRACT(s, max_size); \
|
||||
m_core_strncpy(s->s, max_size+1, str, max_size); \
|
||||
s->s[max_size] = 0; \
|
||||
M_BOUNDED_STR1NG_CONTRACT(s, max_size); \
|
||||
} \
|
||||
\
|
||||
|
||||
Reference in new issue
Block a user