banned.h: fix vsprintf()'s ban message
authorTaylor Blau <me@ttaylorr.com>
Sun, 25 Aug 2019 19:42:13 +0000 (15:42 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Aug 2019 17:32:45 +0000 (10:32 -0700)
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>
banned.h
index 447af24807f49f5df4eace6435acba721745fc2c..60a18d44033b207025294a3084cbf7c7c6f20876 100644 (file)
--- a/banned.h
+++ b/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 */