X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c3700deebdbd94f6c9f336b90bb441e858a016a7..a06663061c35a475ef947bf228512f8df92e36f0:/Inject.cpp diff --git a/Inject.cpp b/Inject.cpp index eb85351..46118d8 100644 --- a/Inject.cpp +++ b/Inject.cpp @@ -1,5 +1,5 @@ -/* Cycript - Optimizing JavaScript Compiler/Runtime - * Copyright (C) 2009-2015 Jay Freeman (saurik) +/* Cycript - The Truly Universal Scripting Language + * Copyright (C) 2009-2016 Jay Freeman (saurik) */ /* GNU Affero General Public License, Version 3 {{{ */ @@ -55,7 +55,7 @@ Type_ *shift(Type_ *data, size_t size) { return reinterpret_cast(reinterpret_cast(data) + size); } -void InjectLibrary(int pid, int argc, const char *argv[]) { +void InjectLibrary(int pid, int argc, const char *const argv[]) { auto cynject(LibraryFor(reinterpret_cast(&main))); auto slash(cynject.rfind('/')); _assert(slash != std::string::npos);