--- libaitio/inc/aitio.h 2012/03/29 12:23:00 1.16.2.2 +++ libaitio/inc/aitio.h 2012/04/02 08:08:09 1.16.2.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitio.h,v 1.16.2.2 2012/03/29 12:23:00 misho Exp $ +* $Id: aitio.h,v 1.16.2.3 2012/04/02 08:08:09 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -166,7 +166,8 @@ typedef struct { } } while (0) #define AIT_SET_STRCAT(_vl, _v) do { ait_val_t *__val = (_vl); assert(__val); \ assert(AIT_TYPE(__val) == string); \ - void *__p = realloc(AIT_LEN(__val) + strlen((_v))); \ + void *__p = realloc(__val->val.string, \ + AIT_LEN(__val) + strlen((_v))); \ if (__p) { \ __val->val.string = __p; \ AIT_LEN(__val) += strlen((_v)); \