Fix sizeof() nitpick for goops corruption.
authorHan-Wen Nienhuys <hanwen@lilypond.org>
Mon, 18 Aug 2008 14:02:43 +0000 (11:02 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 18 Aug 2008 14:19:59 +0000 (11:19 -0300)
libguile/goops.c

index cc610fa..8f298c5 100644 (file)
@@ -1709,7 +1709,7 @@ go_to_hell (void *o)
   if (n_hell >= hell_size)
     {
       hell_size *= 2;
-      hell = scm_realloc (hell, hell_size * sizeof(scm_t_bits));
+      hell = scm_realloc (hell, hell_size * sizeof(*hell));
     }
   hell[n_hell++] = SCM_STRUCT_DATA (obj);
   scm_unlock_mutex (hell_mutex);