aboutsummaryrefslogtreecommitdiffstats
path: root/win32/win32.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-23 01:02:18 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-07-23 01:02:18 +0000
commit6524f34a2688436249d111a3456a097c7111722c (patch)
treef9c83bf95a7873e01e38ff396a8bc5490b61162c /win32/win32.c
parente6a02b93747266925fd536a30715352bf2c60c07 (diff)
downloadruby-6524f34a2688436249d111a3456a097c7111722c.tar.gz
* sprintf.c (rb_vsprintf, rb_sprintf): new functions return new String,
using missing/vsnprintf.c. [ruby-dev:26580] * missing/vsnprintf.c: made the output changeable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
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