summaryrefslogtreecommitdiff
path: root/banned.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2019-08-25 19:42:13 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-08-26 17:32:45 (GMT)
commit60d198d022656c543c554fce3c665114c5a69430 (patch)
treed6aa83dc94fde4c4b042134a10631230e3210563 /banned.h
parent75b2f01a0f642b39b0f29b6218515df9b5eb798e (diff)
downloadgit-60d198d022656c543c554fce3c665114c5a69430.zip
git-60d198d022656c543c554fce3c665114c5a69430.tar.gz
git-60d198d022656c543c554fce3c665114c5a69430.tar.bz2
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>
Diffstat (limited to 'banned.h')
-rw-r--r--banned.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/banned.h b/banned.h
index 447af24..60a18d4 100644
--- 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 */