aboutsummaryrefslogtreecommitdiffstats
path: root/com32/lib/vsprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/lib/vsprintf.c')
-rw-r--r--com32/lib/vsprintf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/lib/vsprintf.c b/com32/lib/vsprintf.c
index 8df62130..270dc1b5 100644
--- a/com32/lib/vsprintf.c
+++ b/com32/lib/vsprintf.c
@@ -4,8 +4,9 @@
#include <stdio.h>
#include <unistd.h>
+#include <limits.h>
int vsprintf(char *buffer, const char *format, va_list ap)
{
- return vsnprintf(buffer, ~(size_t) 0, format, ap);
+ return vsnprintf(buffer, INT_MAX, format, ap);
}