summaryrefslogtreecommitdiffstats
path: root/scripts/relocate_sdk.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/relocate_sdk.py')
-rwxr-xr-xscripts/relocate_sdk.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/relocate_sdk.py b/scripts/relocate_sdk.py
index 992db5c47d..ceca1f2563 100755
--- a/scripts/relocate_sdk.py
+++ b/scripts/relocate_sdk.py
@@ -166,6 +166,7 @@ def change_dl_sysdirs():
166 while (offset + 4096) <= sh_size: 166 while (offset + 4096) <= sh_size:
167 path = f.read(4096) 167 path = f.read(4096)
168 new_path = old_prefix.sub(new_prefix, path) 168 new_path = old_prefix.sub(new_prefix, path)
169 new_path = new_path.rstrip(b("\0"))
169 # pad with zeros 170 # pad with zeros
170 new_path += b("\0") * (4096 - len(new_path)) 171 new_path += b("\0") * (4096 - len(new_path))
171 #print "Changing %s to %s at %s" % (str(path), str(new_path), str(offset)) 172 #print "Changing %s to %s at %s" % (str(path), str(new_path), str(offset))