mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-03-14 06:31:31 +00:00
Fix off-by-one in length when checking the last character
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@40240 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
478033988a
commit
af6ec6a874
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2016-11-28 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Parsers/ProjectCenter/PCParser.m
|
||||
Fix off-by-one in length when checking the last character.
|
||||
|
||||
2016-11-25 Riccardo Mottola <rm@gnu.org>
|
||||
|
||||
* Modules/Debuggers/ProjectCenter/PipeDelegate.h
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
** CodeParser.m
|
||||
**
|
||||
** Copyright (c) 2003-2015
|
||||
** Copyright (c) 2003-2016
|
||||
**
|
||||
** Author: Yen-Ju <yjchenx@hotmail.com>
|
||||
** Riccardo Mottola <rm@gnu.org>
|
||||
|
@ -216,7 +216,7 @@ CodeType codeType(unichar *ch)
|
|||
}
|
||||
/* send an extra new line if the file did not terminate with such.
|
||||
Forces the parser to close pending actions */
|
||||
if (codeType(_uchar+_length) != SpaceAndNewLineCodeType)
|
||||
if (codeType(_uchar+(_length-1)) != SpaceAndNewLineCodeType)
|
||||
(*impSpaceAndNewLine)(_handler, selSpaceAndNewLine, 0X0A);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue