Fix obscure crasher

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17281 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2003-07-21 19:22:41 +00:00
parent 6c5cb2fa99
commit 2006c0f018
3 changed files with 26 additions and 5 deletions

View file

@ -1,3 +1,9 @@
2003-07-21 Richard Frith-Macdonald <rfm@gnu.org>
* Source/Additions/Unicode.m (GROW): Fix shifting of pointers into
local buffer for case where we are leaving room for a null terminator.
This avoids moving pointer back before start of buffer.
2003-07-21 Roland Schwingel <Roland.Schwingel@onevision.de>
* Source/libgnustep-base-entry.m: Don't create unnecessary window.

View file

@ -60,7 +60,6 @@
@interface NSDistantObject(GNUstepExtensions) <GCFinalization>
- (id) awakeAfterUsingCoder: (NSCoder*)aDecoder;
- (Class) classForPortCoder;
- (const char *) selectorTypeForProxy: (SEL)selector;
- (id) forward: (SEL)aSel :(arglist_t)frame;

View file

@ -897,8 +897,16 @@ if (dst == 0) \
* adjust the offset into the local buffer on the \
* stack and pretend the buffer has grown. \
*/ \
ptr -= BUFSIZ; \
bsize += BUFSIZ; \
if (extra == 0) \
{ \
ptr -= BUFSIZ; \
bsize += BUFSIZ; \
} \
else \
{ \
ptr -= BUFSIZ-1; \
bsize += BUFSIZ-1; \
} \
} \
else if (zone == 0) \
{ \
@ -1389,8 +1397,16 @@ if (dst == 0) \
* adjust the offset into the local buffer on the \
* stack and pretend the buffer has grown. \
*/ \
ptr -= BUFSIZ; \
bsize += BUFSIZ; \
if (extra == 0) \
{ \
ptr -= BUFSIZ; \
bsize += BUFSIZ; \
} \
else \
{ \
ptr -= BUFSIZ-1; \
bsize += BUFSIZ-1; \
} \
} \
else if (zone == 0) \
{ \