From: Douglas William Thrift Date: Tue, 17 Nov 2009 04:54:43 +0000 (+0000) Subject: Fix on Linux?! X-Git-Tag: v0.9.432~155 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/a815a4d64f594b6c2ee7270935263289cc42f64d?ds=sidebyside;hp=afe00096d832a211eaaebfeb62ea8348d91eb1d9 Fix on Linux?! --- diff --git a/sig/parse.cpp b/sig/parse.cpp index 24de0bc..7fc663f 100644 --- a/sig/parse.cpp +++ b/sig/parse.cpp @@ -81,7 +81,7 @@ void Parse_(apr_pool_t *pool, struct Signature *signature, const char **name, ch if (**name != '"') element->name = NULL; else { - char *quote = strchr(++*name, '"'); + const char *quote = strchr(++*name, '"'); element->name = apr_pstrmemdup(pool, *name, quote - *name); *name = quote + 1; } @@ -126,7 +126,7 @@ struct Type *Parse_(apr_pool_t *pool, const char **name, char eos, bool named, C case '@': if (**name == '"') { - char *quote = strchr(*name + 1, '"'); + const char *quote = strchr(*name + 1, '"'); if (!named || quote[1] == eos || quote[1] == '"') { type->name = apr_pstrmemdup(pool, *name + 1, quote - *name - 1); *name = quote + 1;