summaryrefslogtreecommitdiff
path: root/banned.h
diff options
context:
space:
mode:
Diffstat (limited to 'banned.h')
-rw-r--r--banned.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/banned.h b/banned.h
index 7ab4f2e..44e76bd 100644
--- a/banned.h
+++ b/banned.h
@@ -18,16 +18,15 @@
#define strncpy(x,y,n) BANNED(strncpy)
#undef strncat
#define strncat(x,y,n) BANNED(strncat)
+#undef strtok
+#define strtok(x,y) BANNED(strtok)
+#undef strtok_r
+#define strtok_r(x,y,z) BANNED(strtok_r)
#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(vsprintf)
-#endif
#undef gmtime
#define gmtime(t) BANNED(gmtime)