summaryrefslogtreecommitdiff
path: root/ext/fiddle/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-03 09:53:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-03 09:53:30 +0000
commit544651a2fb9c748e240e30b6def86e9158fa28f1 (patch)
treec467bcefa1edf949a964cd2f5bac7a48bc697952 /ext/fiddle/lib
parent91bcb09262f08c9c3c31064cb2a5c159d8b5000d (diff)
cparser.rb: limit word number
* ext/fiddle/lib/fiddle/cparser.rb (parse_ctype): limit split word number as the rest are not used. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/fiddle/lib')
-rw-r--r--ext/fiddle/lib/fiddle/cparser.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fiddle/lib/fiddle/cparser.rb b/ext/fiddle/lib/fiddle/cparser.rb
index 39812e1..4be82a6 100644
--- a/ext/fiddle/lib/fiddle/cparser.rb
+++ b/ext/fiddle/lib/fiddle/cparser.rb
@@ -169,7 +169,7 @@ module Fiddle
when /\*/, /\[[\s\d]*\]/
return TYPE_VOIDP
else
- ty = ty.split(' ')[0]
+ ty = ty.split(' ', 2)[0]
if( tymap[ty] )
return parse_ctype(tymap[ty], tymap)
else