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

ruby-changes:23999

From: nobu <ko1@a...>
Date: Wed, 13 Jun 2012 10:20:52 +0900 (JST)
Subject: [ruby-changes:23999] nobu:r36051 (trunk): process.c: no SIZE_T_MAX

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

  New Revision: 36051

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

  Log:
    process.c: no SIZE_T_MAX
    
    * process.c (rb_exec_fillarg): get rid of SIZE_T_MAX which may need
      more headers.

  Modified files:
    trunk/ChangeLog
    trunk/process.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 36050)
+++ ChangeLog	(revision 36051)
@@ -1,5 +1,8 @@
-Wed Jun 13 10:20:03 2012  Nobuyoshi Nakada  <nobu@r...>
+Wed Jun 13 10:20:27 2012  Nobuyoshi Nakada  <nobu@r...>
 
+	* process.c (rb_exec_fillarg): get rid of SIZE_T_MAX which may need
+	  more headers.
+
 	* process.c (rb_exec_fillarg): fix array element size.  "continue" and
 	  "readonly" exceeded the size.
 
Index: process.c
===================================================================
--- process.c	(revision 36050)
+++ process.c	(revision 36051)
@@ -1938,7 +1938,7 @@
 		    has_meta = 1;
 		}
 		else if (*p == '/') {
-		    first.len = SIZE_T_MAX; /* longer than any posix_sh_cmds */
+		    first.len = 0x100; /* longer than any posix_sh_cmds */
 		}
 	    }
 	    if (has_meta)

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

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