diff options
Diffstat (limited to 'banned.h')
-rw-r--r-- | banned.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 */ |