diff options
Diffstat (limited to 'scripts/relocate_sdk.py')
-rwxr-xr-x | scripts/relocate_sdk.py | 1 |
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)) |