mirror of
https://github.com/darlinghq/darling-libobjc2.git
synced 2025-02-25 11:10:56 +00:00
Fix off-by-one error in encoding parsing.
This commit is contained in:
parent
911b9142cd
commit
71b4b0df3b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user