From 71b4b0df3b9c3a941a3ebae35f09ffcb02dc2e86 Mon Sep 17 00:00:00 2001 From: theraven Date: Wed, 29 Sep 2010 18:18:45 +0000 Subject: [PATCH] Fix off-by-one error in encoding parsing. --- encoding2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encoding2.c b/encoding2.c index a598dba..fff4398 100644 --- a/encoding2.c +++ b/encoding2.c @@ -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; }