This commit is contained in:
dickelbeck 2010-03-03 06:26:48 +00:00
parent 625210e9c7
commit d438cf6829
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}