mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-01 16:58:33 +03:00
syntax-check: update of sprintf rule to mention g_snprintf
Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
62aa66416a
commit
3c5dcf3427
@ -475,11 +475,11 @@ sc_prohibit_risky_id_promotion:
|
|||||||
halt='cast -1 to ([ug]id_t) before comparing against id' \
|
halt='cast -1 to ([ug]id_t) before comparing against id' \
|
||||||
$(_sc_search_regexp)
|
$(_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
|
# since gnulib has more guarantees for snprintf portability
|
||||||
sc_prohibit_sprintf:
|
sc_prohibit_sprintf:
|
||||||
@prohibit='\<[s]printf\>' \
|
@prohibit='\<[s]printf\>' \
|
||||||
halt='use snprintf, not sprintf' \
|
halt='use g_snprintf, not sprintf' \
|
||||||
$(_sc_search_regexp)
|
$(_sc_search_regexp)
|
||||||
|
|
||||||
sc_prohibit_readlink:
|
sc_prohibit_readlink:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user