X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/8d7447c170dd11c91d0a07768f32a2699177fa54..bc3080fdd24b9858d9c9dcbd3d8dd78ae010962a:/Handler.mm diff --git a/Handler.mm b/Handler.mm index 1ad9ef6..54d002f 100644 --- a/Handler.mm +++ b/Handler.mm @@ -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()) {