From 2526427be0401f0b7fc486a7d56e2e67eb094438 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 30 Jul 2003 06:10:09 +0000 Subject: * 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 --- error.c | 1 - 1 file changed, 1 deletion(-) (limited to 'error.c') 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)); } -- cgit