From d438cf6829a526647fb3fa78fca167116362d047 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Wed, 3 Mar 2010 06:26:48 +0000 Subject: [PATCH] sorry --- common/richio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/richio.cpp b/common/richio.cpp index 3e8216e548..75601db6f4 100644 --- a/common/richio.cpp +++ b/common/richio.cpp @@ -97,7 +97,6 @@ int STRING_LINE_READER::ReadLine() throw (IOError) wxASSERT( ndx + advance <= source.length() ); memcpy( line, &source[ndx], advance ); - line[advance] = 0; length = advance; @@ -105,6 +104,8 @@ int STRING_LINE_READER::ReadLine() throw (IOError) ndx += advance; } + line[advance] = 0; + return advance; }