mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	process.c: no SIZE_T_MAX
* process.c (rb_exec_fillarg): get rid of SIZE_T_MAX which may need more headers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36051 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									33b15cef6c
								
							
						
					
					
						commit
						621153bf3f
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1,4 +1,7 @@
 | 
			
		|||
Wed Jun 13 10:20:03 2012  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
Wed Jun 13 10:20:27 2012  Nobuyoshi Nakada  <nobu@ruby-lang.org>
 | 
			
		||||
 | 
			
		||||
	* 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.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1938,7 +1938,7 @@ rb_exec_fillarg(VALUE prog, int argc, VALUE *argv, VALUE env, VALUE opthash, str
 | 
			
		|||
		    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)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue