Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'banned.h')
-rw-r--r--banned.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/banned.h b/banned.h
index 34f22a4c25..ad0d36dc9f 100644
--- a/banned.h
+++ b/banned.h
@@ -15,4 +15,14 @@
#undef strcat
#define strcat(x,y) BANNED(strcat)
+#undef sprintf
+#undef vsprintf
+#ifdef HAVE_VARIADIC_MACROS
+#define sprintf(...) BANNED(sprintf)
+#define vsprintf(...) BANNED(vsprintf)
+#else
+#define sprintf(buf,fmt,arg) BANNED(sprintf)
+#define vsprintf(buf,fmt,arg) BANNED(sprintf)
+#endif
+
#endif /* BANNED_H */