Fixes unterminated string for atomic_aggr attribute formatting.

This commit is contained in:
Ondrej Zajicek 2010-03-17 23:17:55 +01:00
parent 97e46d28ff
commit 1528d30aeb

View file

@ -403,6 +403,7 @@ ea_format(eattr *e, byte *buf)
bsprintf(buf, "%u", e->u.data);
break;
case EAF_TYPE_OPAQUE:
*buf = 0;
for(i=0; i<ad->length; i++)
{
if (buf > end - 8)