Fix off-by-one error in encoding parsing.

This commit is contained in:
theraven 2010-09-29 18:18:45 +00:00
parent 911b9142cd
commit 71b4b0df3b

View File

@ -41,7 +41,7 @@ const char *objc_skip_argspec(const char *type)
static size_t lengthOfTypeEncoding(const char *types)
{
const char *end = objc_skip_typespec(types);
size_t length = end - types + 1;
size_t length = end - types;
return length;
}