]> git.saurik.com Git - cycript.git/blobdiff - ObjectiveC/Replace.cpp
In trampoline, make $strlcpy not crash given NULL.
[cycript.git] / ObjectiveC / Replace.cpp
index 5c7759921067c727dd436835ff3baf66f868c4ed..1502aa22c09abf3224fd436546f4bb0db2097376 100644 (file)
@@ -206,7 +206,7 @@ CYExpression *CYSendDirect::Replace(CYContext &context) {
             argument = &(*argument)->next_;
     }
 
-    return $C2($V("objc_msgSend"), self_, ($ CYSelector(selector))->Replace(context), arguments_);
+    return $C2($V("objc_msgSend"), self_, selector->Replace(context), arguments_);
 }
 
 CYExpression *CYSendSuper::Replace(CYContext &context) {