aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 7345f3d2df..1839aeebb0 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -3602,9 +3602,7 @@ rb_w32_utime(const char *path, struct utimbuf *times)
int
rb_w32_vsnprintf(char *buf, size_t size, const char *format, va_list va)
{
- int ret = _vsnprintf(buf, size, format, va);
- if (size > 0) buf[size - 1] = 0;
- return ret;
+ return vsnprintf(buf, size, format, va);
}
int