[Spice-devel] [PATCH spice 2/3] syntax-check: Skip strncpy check
Pavel Grunt
pgrunt at redhat.com
Fri Nov 18 10:45:40 UTC 2016
strncpy used in reds_init_socket() has destination NUL terminated
---
An alternative would be to use g_strlcpy
---
cfg.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/cfg.mk b/cfg.mk
index 3e5d345..66235ee 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -42,6 +42,7 @@ local-checks-to-skip = \
sc_prohibit_stat_st_blocks \
sc_prohibit_magic_number_exit \
sc_prohibit_strcmp \
+ sc_prohibit_strncpy \
sc_prohibit_undesirable_word_seq \
sc_root_tests \
sc_space_tab \
--
2.10.2
More information about the Spice-devel
mailing list