[Plib-cvs] plib/src/puAux puAuxLargeInput.cxx,1.5,1.6
Brought to you by:
sjbaker
From: John F. F. <fa...@us...> - 2005-05-23 16:43:36
|
Update of /cvsroot/plib/plib/src/puAux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26836 Modified Files: puAuxLargeInput.cxx Log Message: Fixing a bug in which the selection start position could go off the end of the text string Index: puAuxLargeInput.cxx =================================================================== RCS file: /cvsroot/plib/plib/src/puAux/puAuxLargeInput.cxx,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- puAuxLargeInput.cxx 6 May 2005 18:54:08 -0000 1.5 +++ puAuxLargeInput.cxx 23 May 2005 16:43:11 -0000 1.6 @@ -183,7 +183,8 @@ if ( select_start_position < 0 ) select_start_position = 0 ; - if ( *(temp_text + select_start_position + 1) != '\n' ) + if ( ( *(temp_text + select_start_position + 1) != '\n' ) && + ( *(temp_text + select_start_position) != '\0' ) ) select_start_position ++ ; while ( ( select_start_position > 0 ) && ( *(temp_text + select_start_position) != '\n' ) ) |