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>
Taylor Blau committed
Aug 25, 2019 at 15:42 UTC
60d198d022656c543c554fce3c665114c5a69430
1 file changed
+1
-1
banned.h
+1
-1
@@ -26,7 +26,7 @@
26
#define vsprintf(...) BANNED(vsprintf)
27
#else
28
#define sprintf(buf,fmt,arg) BANNED(sprintf)
29
-#define vsprintf(buf,fmt,arg) BANNED(sprintf)
29
+#define vsprintf(buf,fmt,arg) BANNED(vsprintf)
30
#endif
31
32
#endif /* BANNED_H */