{"thread":{"id":"51733","subject":"[PATCH] banned.h: fix vsprintf()'s ban message","startedAt":"2019-08-25T19:42:17Z","lastAt":"2019-08-25T19:42:17Z","messageCount":1,"participants":["Taylor Blau"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"381124","messageId":"cab687db8315dd4245e1703402a8c76218ee1115.1566762128.git.me@ttaylorr.com","threadId":"51733","inReplyTo":null,"subject":"[PATCH] banned.h: fix vsprintf()'s ban message","fromName":"Taylor Blau","fromEmail":"me@ttaylorr.com","sentAt":"2019-08-25T19:42:13Z","receivedAt":"2019-08-25T19:42:17Z","isPatch":true,"sender":{"key":"me@ttaylorr.com","avatar":"https://avatars.githubusercontent.com/u/301000140?v=4"},"body":"In cc8fdaee1e (banned.h: mark sprintf() as banned, 2018-07-24), both\n'sprintf()' and 'vsprintf()' were marked as banned functions. The\nnon-variadic macro to ban 'vsprintf' has a typo which says that\n'sprintf', not 'vsprintf' is banned. The variadic version does not have\nthe same typo.\n\nFix this by updating the explicit form of 'vsprintf' as the banned\nversion of itself, not 'sprintf'.\n\nSigned-off-by: Taylor Blau <me@ttaylorr.com>\n---\n banned.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/banned.h b/banned.h\nindex 447af24807..60a18d4403 100644\n--- a/banned.h\n+++ b/banned.h\n@@ -26,7 +26,7 @@\n #define vsprintf(...) BANNED(vsprintf)\n #else\n #define sprintf(buf,fmt,arg) BANNED(sprintf)\n-#define vsprintf(buf,fmt,arg) BANNED(sprintf)\n+#define vsprintf(buf,fmt,arg) BANNED(vsprintf)\n #endif\n \n #endif /* BANNED_H */\n-- \n2.22.0\n"}]}