From 9f70cc51de8bd20fbf1afcd7e12c88162fff08cc Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 30 Dec 2008 23:01:39 +0000 Subject: [PATCH] fixed a bad alloc --- lib/as3/pool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/as3/pool.c b/lib/as3/pool.c index 7305bd9..fe30724 100644 --- a/lib/as3/pool.c +++ b/lib/as3/pool.c @@ -180,7 +180,7 @@ char* namespace_tostring(namespace_t*ns) U8 type = ns->access; access = access2str(type); char*s = escape_string(ns->name); - char*string = (char*)malloc(strlen(access)+strlen(s)+3); + char*string = (char*)malloc(strlen(access)+strlen(s)+7); if(!s) sprintf(string, "[%s]NULL", access, s); else if(!*s) -- 1.7.10.4