]> git.saurik.com Git - cycript.git/blobdiff - Cycript.l.in
Updated todo list with some random exception-related thoughts.
[cycript.git] / Cycript.l.in
index 0a9bbda388e5bf85864e63f376af13da29bb0a6e..7323e251cb9b95c920346be8fbba69842af36c4e 100644 (file)
@@ -107,7 +107,8 @@ int H(char c) {
     } else if (yyextra->size_ == 0) \
         value = YY_NULL; \
     else { \
-        size_t copy(std::min(size, yyextra->size_)); \
+        size_t copy(size); \
+        copy = (std::min(copy, yyextra->size_)); \
         memcpy(data, yyextra->data_, copy); \
         yyextra->data_ += copy; \
         yyextra->size_ -= copy; \