X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/b3378a02d0a811be38e530933fb9a57a3012a823..bc3080fdd24b9858d9c9dcbd3d8dd78ae010962a:/Handler.mm diff --git a/Handler.mm b/Handler.mm index 008d426..54d002f 100644 --- a/Handler.mm +++ b/Handler.mm @@ -1,5 +1,5 @@ /* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2010 Jay Freeman (saurik) + * Copyright (C) 2009-2012 Jay Freeman (saurik) */ /* GNU Lesser General Public License, Version 3 {{{ */ @@ -99,11 +99,10 @@ struct CYClient : return; data[size] = '\0'; - CYDriver driver; - cy::parser parser(driver); + CYStream stream(data, data + size); + CYDriver driver(stream); - driver.data_ = data; - driver.size_ = size; + cy::parser parser(driver); const char *json; if (parser.parse() != 0 || !driver.errors_.empty()) {