From: kramm Date: Tue, 30 Dec 2008 23:01:39 +0000 (+0000) Subject: fixed a bad alloc X-Git-Tag: release-0-9-0~531 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=9f70cc51de8bd20fbf1afcd7e12c88162fff08cc fixed a bad alloc --- 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)