mirror of
https://github.com/mon/kbinxml.git
synced 2026-08-19 23:24:19 -05:00
Fix strings with extra NUL padding
This commit is contained in:
@@ -377,7 +377,8 @@ class KBinXML():
|
||||
else:
|
||||
string = ' '.join(map(nodeFormat.get('toStr', str), data))
|
||||
|
||||
node.text = string
|
||||
# some strings have extra NUL bytes, compatible behaviour is to strip
|
||||
node.text = string.strip('\0')
|
||||
|
||||
# because we need the 'real' root
|
||||
self.xml_doc = self.xml_doc[0]
|
||||
|
||||
Reference in New Issue
Block a user