([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:
Andrew McCallum 1996-01-12 16:56:38 +00:00
parent 0c9741f506
commit 54c63673aa

View file

@ -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);