From d190709e0543df39048f1be774768076ccfbeace Mon Sep 17 00:00:00 2001 From: David Chisnall Date: Tue, 19 Apr 2011 16:26:09 +0000 Subject: [PATCH] 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 --- Source/NSMethodSignature.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/NSMethodSignature.m b/Source/NSMethodSignature.m index 779d8f2c0..628ceb80f 100644 --- a/Source/NSMethodSignature.m +++ b/Source/NSMethodSignature.m @@ -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);