summaryrefslogtreecommitdiff
path: root/src/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.c')
-rw-r--r--src/compat.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/compat.c b/src/compat.c
index d7fdd63ff..052d5254d 100644
--- a/src/compat.c
+++ b/src/compat.c
@@ -29,9 +29,7 @@ int vsnprintf(char *buf, size_t len, const char *fmt, va_list args)
if (len <= 0)
return 0;
*buf = 0;
-#undef vsnprintf
vsnprintf(buf, len, fmt, args);
-#define vsnprintf my_vsnprintf
buf[len - 1] = 0;
return strlen(buf);
}