X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/313708a920160155c9b9fa15e3337fbe2457ee58..cb079cbb32488d6ba706d9114564a6aaaa6331f0:/Cycript.l.in diff --git a/Cycript.l.in b/Cycript.l.in index 0a9bbda..7323e25 100644 --- a/Cycript.l.in +++ b/Cycript.l.in @@ -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; \