Fixed copy of unhandled args

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@9312 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2001-03-08 03:58:07 +00:00
parent bc02628d69
commit 78809d0762
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2001-03-07 Adam Fedor <fedor@gnu.org>
* Source/NSInvocation.m (-initWithTarget:selector:): Correct copying
of unhandled argument types.
2001-03-07 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSObject.m: ([methodSignatureForSelector:]) reliability

View file

@ -698,12 +698,12 @@ _arg_addr(NSInvocation *inv, int index)
#endif
#endif
NSLog(@"Unsafe handling of type of %d argument.", i-1);
memcpy(datum, ap, size);
{
struct {
char x[size];
} dummy;
dummy = va_arg(ap, typeof(dummy));
memcpy(datum, dummy.x, size);
}
break;
}