Avoid GCC warning (-Wstringop-truncation)

This commit is contained in:
Patrick Pelissier committed 2021-07-05 23:14:21 +02:00
1 parent 0171c49413
commit e46bbaffb9
1 file changed
+1
+1
View File
@@ -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); \
} \
\