]> git.saurik.com Git - cycript.git/blobdiff - Console.cpp
Fixed serialization of function w/ CYNoLeader and implemented line tokenization for...
[cycript.git] / Console.cpp
index 468a6d3d0da222a383c705f62284cd738049bb5e..d938217b353dd33797902784b70c3b28a96db8e8 100644 (file)
@@ -179,8 +179,9 @@ static void Console(int socket) {
             }
         }
 
-        lines.push_back(line);
         command += line;
+        for (char *state, *token(apr_strtok(line, "\n", &state)); token != NULL; token = apr_strtok(NULL, "\n", &state))
+            lines.push_back(token);
         free(line);
 
         std::string code;