mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
([NSMethodSignature +signatureWithObjCTypes:]): Use gcc's builtin
memcpy instead of bcopy. (Reported by Matthias Klose <doko@cs.tu-berlin.de>.) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@710 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
0c9741f506
commit
54c63673aa
1 changed files with 2 additions and 2 deletions
|
@ -54,10 +54,10 @@ types_get_number_of_arguments (const char *types)
|
|||
NSMethodSignature *newMs = [NSMethodSignature alloc];
|
||||
len = strlen(t);
|
||||
OBJC_MALLOC(newMs->types, char, len);
|
||||
bcopy(t, newMs->types, len);
|
||||
memcpy(newMs->types, t, len);
|
||||
len = strlen(t); /* xxx */
|
||||
OBJC_MALLOC(newMs->returnTypes, char, len);
|
||||
bcopy(t, newMs->returnTypes, len);
|
||||
memcpy(newMs->returnTypes, t, len);
|
||||
newMs->returnTypes[len-1] = '\0';
|
||||
newMs->argFrameLength = types_get_size_of_arguments(t);
|
||||
newMs->returnFrameLength = objc_sizeof_type(t);
|
||||
|
|
Loading…
Reference in a new issue