]> xenbits.xensource.com Git - libvirt.git/commitdiff
syntax-check: update of sprintf rule to mention g_snprintf
authorPavel Hrdina <phrdina@redhat.com>
Wed, 13 Nov 2019 16:33:26 +0000 (17:33 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 20 Nov 2019 12:30:11 +0000 (13:30 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
build-aux/syntax-check.mk

index ba941746a1f44f65581b8456236f90f7fd077c34..6b62e20ed43605dd56c861d8bc8d5afd653f92a5 100644 (file)
@@ -475,11 +475,11 @@ sc_prohibit_risky_id_promotion:
        halt='cast -1 to ([ug]id_t) before comparing against id' \
          $(_sc_search_regexp)
 
-# Use snprintf rather than s'printf, even if buffer is provably large enough,
+# Use g_snprintf rather than s'printf, even if buffer is provably large enough,
 # since gnulib has more guarantees for snprintf portability
 sc_prohibit_sprintf:
        @prohibit='\<[s]printf\>' \
-       halt='use snprintf, not sprintf' \
+       halt='use g_snprintf, not sprintf' \
          $(_sc_search_regexp)
 
 sc_prohibit_readlink: