Fixed off-by-one allocation error causing a write outside of the allocated buffer. Changed "calls" to sizeof to always use an expression instead of a type so that it is easier to change types in the future (also fixes occurances of sizeof(char **) that should have been sizeof(char *)). Changed REALLOC macro so that the second arg is the number of elements to be allocated instead of the number of bytes (i.e. move the use of sizeof from the call of the macro to the body of the macro).
Fixed off-by-one allocation error causing a write outside of the
allocated buffer.
Changed "calls" to sizeof to always use an expression instead of a
type so that it is easier to change types in the future (also fixes
occurances of sizeof(char **) that should have been sizeof(char *)).
Changed REALLOC macro so that the second arg is the number of elements
to be allocated instead of the number of bytes (i.e. move the use of
sizeof from the call of the macro to the body of the macro).

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb