Various small bugfixes.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3138 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1998-10-28 13:58:05 +00:00
parent 179714a31b
commit d2d5feb8ef
5 changed files with 347 additions and 268 deletions

View file

@ -801,13 +801,13 @@ failure:
[self deserializeBytes: types
length: lt
atCursor: cursor];
name[lt] = '\0';
types[lt] = '\0';
if (lt) {
sel = sel_get_typed_uid(name, types);
}
else {
sel = sel_get_uid(name);
sel = sel_get_any_typed_uid(name);
}
if (sel == 0) {
[NSException raise: NSInternalInconsistencyException
@ -1684,13 +1684,13 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
getBytes((void*)name, bytes, ln, length, cursor);
name[ln] = '\0';
getBytes((void*)types, bytes, lt, length, cursor);
name[lt] = '\0';
types[lt] = '\0';
if (lt) {
sel = sel_get_typed_uid(name, types);
}
else {
sel = sel_get_uid(name);
sel = sel_get_any_typed_uid(name);
}
if (sel == 0) {
[NSException raise: NSInternalInconsistencyException
@ -2448,7 +2448,7 @@ getBytes(void* dst, void* src, unsigned len, unsigned limit, unsigned *pos)
length += ln;
}
if (lt) {
memcpy(bytes+length, type, lt);
memcpy(bytes+length, types, lt);
length += lt;
}
return;