diff options
author | Georg Brandl <georg@python.org> | 2006-10-24 16:54:16 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-10-24 16:54:16 (GMT) |
commit | a32e0a099bb85ab355bdebd7c494060c1cfc0171 (patch) | |
tree | e6a5abc9c54f0d653e974578646e808b065fc0b2 /Lib/tarfile.py | |
parent | e97c75966021bbcb2ef219e6602aea80c7b06ed9 (diff) | |
download | cpython-a32e0a099bb85ab355bdebd7c494060c1cfc0171.zip cpython-a32e0a099bb85ab355bdebd7c494060c1cfc0171.tar.gz cpython-a32e0a099bb85ab355bdebd7c494060c1cfc0171.tar.bz2 |
Patch [ 1583506 ] tarfile.py: 100-char filenames are truncated
Diffstat (limited to 'Lib/tarfile.py')
-rw-r--r-- | Lib/tarfile.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tarfile.py b/Lib/tarfile.py index 8d5f021..7c140da 100644 --- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -136,7 +136,7 @@ TOEXEC = 0001 # execute/search by other def stn(s, length): """Convert a python string to a null-terminated string buffer. """ - return s[:length-1] + (length - len(s) - 1) * NUL + NUL + return s[:length] + (length - len(s)) * NUL def nti(s): """Convert a number field to a python number. |