summaryrefslogtreecommitdiffstats
path: root/error.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 06:10:09 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-30 06:10:09 +0000
commit2526427be0401f0b7fc486a7d56e2e67eb094438 (patch)
tree823a2fec01bca2e312aa4bf77e414756cc4107c8 /error.c
parenta7574f31daa7c40a6e1651a7a1fb5b5cd8cecfda (diff)
downloadruby-2526427be0401f0b7fc486a7d56e2e67eb094438.tar.gz
ruby-2526427be0401f0b7fc486a7d56e2e67eb094438.tar.xz
ruby-2526427be0401f0b7fc486a7d56e2e67eb094438.zip
* error.c (rb_raise): snprintf() termination moved to
win32/win32.c. * win32/win32.c (valid_filename, str_grow): unused. * win32/win32.c (NTLoginName, ChildRecord): make static. * win32/win32.c (CreateChild): argument check. * win32/win32.c (kill): should not call CloseHandle() when OpenProcess() failed. * win32/win32.c (rb_w32_vsnprintf, rb_w32_snprintf): ensure buffer terminated. [ruby-talk:69672] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'error.c')
-rw-r--r--error.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/error.c b/error.c
index fb900b26a..f8fbdf7ad 100644
--- a/error.c
+++ b/error.c
@@ -690,7 +690,6 @@ rb_raise(exc, fmt, va_alist)
va_init_list(args,fmt);
vsnprintf(buf, BUFSIZ, fmt, args);
- buf[BUFSIZ - 1] = '\0';
va_end(args);
rb_exc_raise(rb_exc_new2(exc, buf));
}