summaryrefslogtreecommitdiffstats
path: root/Lib/dos-8x3/stringio.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/dos-8x3/stringio.py')
-rwxr-xr-xLib/dos-8x3/stringio.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/dos-8x3/stringio.py b/Lib/dos-8x3/stringio.py
index 334bf85..6952b1a 100755
--- a/Lib/dos-8x3/stringio.py
+++ b/Lib/dos-8x3/stringio.py
@@ -129,6 +129,8 @@ class StringIO:
self.buflist = []
self.buflist = [self.buf[:self.pos], s, self.buf[newpos:]]
self.buf = ''
+ if newpos > self.len:
+ self.len = newpos
else:
self.buflist.append(s)
self.len = newpos