tabernac!
git-svn-id: file:///home/svn/incoming/trunk@2840 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
0a67ecab42
commit
68c2551e5c
|
@ -7,6 +7,7 @@ module Struct2
|
|||
class SString
|
||||
|
||||
require 'rex/struct2/element'
|
||||
require 'rex/struct2/constant'
|
||||
include Rex::Struct2::Element
|
||||
|
||||
attr_reader :size, :default, :pad
|
||||
|
@ -23,8 +24,8 @@ class SString
|
|||
if !newsize
|
||||
self.restraint = nil
|
||||
else
|
||||
res = Rex::Struct2::Constant(size)
|
||||
self.restraint = Rex::Struct2::Restraint(res, res, true)
|
||||
res = Rex::Struct2::Constant.new(size)
|
||||
self.restraint = Rex::Struct2::Restraint.new(res, res, true)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue