Fix building with MSVC.
authorZoltan Varga <vargaz@gmail.com>
Wed, 18 Aug 2010 15:52:07 +0000 (17:52 +0200)
committerZoltan Varga <vargaz@gmail.com>
Wed, 18 Aug 2010 15:52:07 +0000 (17:52 +0200)
mono/mini/tramp-x86.c

index 9e814738e212a04b77e25950b50620d6df266a8f..1a15c3d01ea33ba70bccd1aac051f474c2110295 100644 (file)
@@ -174,7 +174,7 @@ get_vcall_slot (guint8 *code, mgreg_t *regs, int *displacement)
        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;