X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/7eb6c2f23b20ac241ec4cc1183654d9b01fd86ef..e7ff015817107dbac9373c19ce851178e4f3c791:/Trampoline.t.cpp diff --git a/Trampoline.t.cpp b/Trampoline.t.cpp index 1901ad8..7c6b388 100644 --- a/Trampoline.t.cpp +++ b/Trampoline.t.cpp @@ -196,14 +196,14 @@ void *Routine(void *arg) { void *(*$dlsym)(void *, const char *); cyset($dlsym, "_dlsym", dyld); - void (*CYHandleServer)(pid_t); - CYHandleServer = reinterpret_cast($dlsym(handle, "CYHandleServer")); + void (*CYHandleServer)(pid_t, char *, size_t); + CYHandleServer = reinterpret_cast($dlsym(handle, "CYHandleServer")); if (CYHandleServer == NULL) { $strlcpy(baton->error, $dlerror(), sizeof(baton->error)); return NULL; } - CYHandleServer(baton->pid); + CYHandleServer(baton->pid, baton->error, sizeof(baton->error)); return NULL; }