diff mbox series

[1/1] banned.h: fix vsprintf warning

Message ID 148e4c1f06ebf86664cd7fa3007fa9e09962c95d.1566832910.git.gitgitgadget@gmail.com (mailing list archive)
State New, archived
Headers show
Series banned.h: fix vsprintf warning | expand

Commit Message

Linus Arver via GitGitGadget Aug. 26, 2019, 3:21 p.m. UTC
From: Andrey Portnoy <aportnoy@ucsd.edu>

Previously sprintf was the argument to the BANNED macro, where vsprintf
is expected.

Signed-off-by: Andrey Portnoy <aportnoy@ucsd.edu>
---
 banned.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/banned.h b/banned.h
index 447af24807..60a18d4403 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 */