After going to all of the effort of recomputing the frame size, actually store the one that we compute instead of accidentally discarding it.

It would probably be a good idea if we skipped the entire disassemble / reassemble code path if we've got sensible method encoding strings.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32908 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
theraven 2011-04-19 16:26:09 +00:00
parent 215c7fff9d
commit d6e22f687b

View file

@ -439,7 +439,7 @@ next_arg(const char *typePtr, NSArgumentInfo *info, char *outTypes)
p = objc_skip_type_qualifiers (p);
}
alen = ptr - args;
sprintf(ret + rlen, "%d", (int)_argFrameLength);
rlen += sprintf(ret + rlen, "%d", (int)_argFrameLength);
_methodTypes = NSZoneMalloc(NSDefaultMallocZone(), alen + rlen + 1);
strncpy((char*)_methodTypes, ret, rlen);