From ce1e161f524c3263400e58bba4dde19bdbc013d2 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Sun, 4 Jan 2009 12:38:31 -0700 Subject: [PATCH] allocate larger buffer for sitesToString --- src/compiler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler.cpp b/src/compiler.cpp index ed6dc2b486..b3790afefe 100644 --- a/src/compiler.cpp +++ b/src/compiler.cpp @@ -1693,7 +1693,7 @@ steal(Context* c, Resource* r, Value* thief, Stack* stack, Local* locals) { if (DebugResources) { char resourceBuffer[256]; r->toString(c, resourceBuffer, 256); - char siteBuffer[256]; sitesToString(c, r->value, siteBuffer, 256); + char siteBuffer[1024]; sitesToString(c, r->value, siteBuffer, 1024); fprintf(stderr, "%p steal %s from %p (%s)\n", thief, resourceBuffer, r->value, siteBuffer); } @@ -3472,7 +3472,7 @@ Site* readSource(Context* c, Stack* stack, Local* locals, Read* r) { if (DebugReads) { - char buffer[256]; sitesToString(c, r->value, buffer, 256); + char buffer[1024]; sitesToString(c, r->value, buffer, 1024); fprintf(stderr, "read source for %p from %s\n", r->value, buffer); }