Enable support for wrapping non Exception subclasses in RuntimeWrappedException objec...
[mono.git] / mono / mini / tramp-x86.c
index 93b0922d3e897708dc4e132eddd00d246ef58569..1a15c3d01ea33ba70bccd1aac051f474c2110295 100644 (file)
@@ -170,11 +170,11 @@ static gpointer
 get_vcall_slot (guint8 *code, mgreg_t *regs, int *displacement)
 {
        const int kBufSize = NACL_SIZE (8, 16);
-       guint8 buf [kBufSize];
+       guint8 buf [64];
        guint8 reg = 0;
        gint32 disp = 0;
 
-       mono_breakpoint_clean_code (NULL, code, kBufSize, buf, sizeof (buf));
+       mono_breakpoint_clean_code (NULL, code, kBufSize, buf, kBufSize);
        code = buf + 8;
 
        *displacement = 0;