mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +00:00
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:
parent
6c5cb2fa99
commit
2006c0f018
3 changed files with 26 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) \
|
||||
{ \
|
||||
|
|
Loading…
Reference in a new issue