lib/win32/security/sid.rb in win32-security-0.2.2 vs lib/win32/security/sid.rb in win32-security-0.2.3

- old
+ new

@@ -272,10 +272,11 @@ @account = sid.read_string(sid.size).strip elsif ordinal_val < 10 @sid = account @account = sid.read_string(sid.size).strip else - @sid = sid.read_string(sid.size).strip + length = GetLengthSid(sid) + @sid = sid.read_string(length) @account = account end @host = host @domain = domain.read_string