Skip to content

Commit 60d198d

Browse files
ttaylorrgitster
authored andcommitted
banned.h: fix vsprintf()'s ban message
In cc8fdae (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 75b2f01 commit 60d198d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

banned.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define vsprintf(...) BANNED(vsprintf)
2727
#else
2828
#define sprintf(buf,fmt,arg) BANNED(sprintf)
29-
#define vsprintf(buf,fmt,arg) BANNED(sprintf)
29+
#define vsprintf(buf,fmt,arg) BANNED(vsprintf)
3030
#endif
3131

3232
#endif /* BANNED_H */

0 commit comments

Comments
 (0)