]> arthur.ath.cx Git - bup.git/blobdiff - lib/bup/main.py
main: fix output string truncation
[bup.git] / lib / bup / main.py
index 746fce451b532ef7e8122dcf6fe8e451917793eb..dcab41b59eab18cf17b42df4d14a950c74f6e498 100755 (executable)
@@ -219,7 +219,7 @@ def print_clean_line(dest, content, width, sep=None):
         assert not sep_rx.match(x)
     content = b''.join(content)
     if sep == b'\r' and len(content) > width:
-        content = content[width:]
+        content = content[:width]
     os.write(dest, content)
     if len(content) < width:
         os.write(dest, b' ' * (width - len(content)))