bugfix for method name termination

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@12809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-02-27 09:01:32 +00:00
parent 52df8bfe7c
commit 22f8f72d56
2 changed files with 4 additions and 0 deletions

View file

@ -2,6 +2,8 @@
* Tools/gdomap.c: Removed obsolete code for shrinking data structures.
* Source/GSValue.m: attempt to correct encoding.
* Source/NSKeyValueCoding.m: Fix termination of method names with nuls
from report by Manuel Guesdon.
2002-02-26 Richard Frith-Macdonald <rfm@gnu.org>

View file

@ -183,6 +183,7 @@
hi = islower(lo) ? toupper(lo) : lo;
buf[4] = hi;
buf[size+4] = ':';
buf[size+5] = '\0';
name = buf; // _setKey:
type = NULL;
@ -245,6 +246,7 @@
hi = islower(lo) ? toupper(lo) : lo;
buf[4] = hi;
buf[size+4] = ':';
buf[size+5] = '\0';
name = &buf[1]; // setKey:
type = NULL;