builtin/commit-graph.c: UNLEAK variables
[gitweb.git] / banned.h
index 1a3e52657060a35d869244b32963e613d035374d..28f5937035b762ad9fb091ea8fb7cc96f38fc92d 100644 (file)
--- a/banned.h
+++ b/banned.h
 
 #undef strcpy
 #define strcpy(x,y) BANNED(strcpy)
+#undef strcat
+#define strcat(x,y) BANNED(strcat)
+#undef strncpy
+#define strncpy(x,y,n) BANNED(strncpy)
+
+#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 */