mirror of
https://github.com/git/git.git
synced 2024-10-28 12:59:41 +01:00
banned.h: fix vsprintf()'s ban message
In cc8fdaee1e
(banned.h: mark sprintf() as banned, 2018-07-24), both
'sprintf()' and 'vsprintf()' were marked as banned functions. The
non-variadic macro to ban 'vsprintf' has a typo which says that
'sprintf', not 'vsprintf' is banned. The variadic version does not have
the same typo.
Fix this by updating the explicit form of 'vsprintf' as the banned
version of itself, not 'sprintf'.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
75b2f01a0f
commit
60d198d022
1 changed files with 1 additions and 1 deletions
2
banned.h
2
banned.h
|
@ -26,7 +26,7 @@
|
|||
#define vsprintf(...) BANNED(vsprintf)
|
||||
#else
|
||||
#define sprintf(buf,fmt,arg) BANNED(sprintf)
|
||||
#define vsprintf(buf,fmt,arg) BANNED(sprintf)
|
||||
#define vsprintf(buf,fmt,arg) BANNED(vsprintf)
|
||||
#endif
|
||||
|
||||
#endif /* BANNED_H */
|
||||
|
|
Loading…
Reference in a new issue