mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
bc02628d69
commit
78809d0762
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue