diff src/c/urweb.c @ 470:7cb418e9714f

Tree demo works
author Adam Chlipala <adamc@hcoop.net>
date Thu, 06 Nov 2008 18:49:38 -0500
parents 3f1b9231a37b
children 70ee90105fce
line wrap: on
line diff
--- a/src/c/urweb.c	Thu Nov 06 17:09:53 2008 -0500
+++ b/src/c/urweb.c	Thu Nov 06 18:49:38 2008 -0500
@@ -174,7 +174,7 @@
       newLen = 1;
     else
       newLen = len * 2;
-    ctx->cleanup = realloc(ctx->cleanup, newLen);
+    ctx->cleanup = realloc(ctx->cleanup, newLen * sizeof(cleanup));
     ctx->cleanup_front = ctx->cleanup + len;
     ctx->cleanup_back = ctx->cleanup + newLen;
   }