git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
AGAndrey Portnoy via GitGitGadget <gitgitgadget@gmail.com>
Date
Aug 26, 2019, 15:21 UTC
Message-ID
<148e4c1f06ebf86664cd7fa3007fa9e09962c95d.1566832910.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.322.git.gitgitgadget@gmail.com>
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 --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 */
-- 
gitgitgadget
Previous: Andrey Portnoy via GitGitGadgetNext: Junio C Hamano
Message 2 of 8 in “banned.h: fix vsprintf warning”
  1. 0/1 banned.h: fix vsprintf warningAndrey Portnoy via GitGitGadget, Aug 26, 2019
  2. 1/1 banned.h: fix vsprintf warningAndrey Portnoy via GitGitGadget, Aug 26, 2019
  3. Junio C HamanoAug 26, 2019
  4. Jeff KingAug 26, 2019
  5. Taylor BlauAug 26, 2019
  6. Junio C HamanoAug 27, 2019
  7. Andrey PortnoyAug 26, 2019
  8. Andrey PortnoyAug 26, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.