[前][次][番号順一覧][スレッド一覧]

ruby-changes:24000

From: nobu <ko1@a...>
Date: Wed, 13 Jun 2012 10:21:00 +0900 (JST)
Subject: [ruby-changes:24000] nobu:r36050 (trunk): process.c: fix array element size

nobu	2012-06-13 10:20:05 +0900 (Wed, 13 Jun 2012)

  New Revision: 36050

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=36050

  Log:
    process.c: fix array element size
    
    * process.c (rb_exec_fillarg): fix array element size.  "continue" and
      "readonly" exceeded the size.

  Modified files:
    trunk/ChangeLog
    trunk/process.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36049)
+++ ChangeLog	(revision 36050)
@@ -1,5 +1,8 @@
-Wed Jun 13 09:56:29 2012  Nobuyoshi Nakada  <nobu@r...>
+Wed Jun 13 10:20:03 2012  Nobuyoshi Nakada  <nobu@r...>
 
+	* process.c (rb_exec_fillarg): fix array element size.  "continue" and
+	  "readonly" exceeded the size.
+
 	* process.c (rb_exec_fillarg): use shell if the first word is reserved
 	  or special built-in name.
 	  http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
Index: process.c
===================================================================
--- process.c	(revision 36049)
+++ process.c	(revision 36050)
@@ -1866,7 +1866,7 @@
 
 #ifndef _WIN32
     if (e->use_shell) {
-	static const char posix_sh_cmds[][8] = {
+	static const char posix_sh_cmds[][9] = {
 	    "!",		/* reserved */
 	    ".",		/* special built-in */
 	    "break",		/* special built-in */

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]